repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept22.C
blob
7aab0f43c4ea28ae8cc86ad6f7e703034c1bf543
1
// PR c++/60046
2
// { dg-require-effective-target c++11 }
3
4
constexpr bool foo () { return noexcept (true); }
5
template <typename T>
6
struct V
7
{
8
void bar (V &) noexcept (foo ()) {}
9
};
10
template <typename T>
11
struct W : public V <int>
12
{
13
void bar (W &x) { V <int>::bar (x); }
14
};
15
16
int
17
main ()
18
{
19
W <int> a, b;
20
a.bar (b);
21
}