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
/
noexcept20.C
blob
ec4f3a153354eeec975de4c833e6c32ffc2d78d3
1
// PR c++/56071
2
// { dg-do compile { target c++11 } }
3
4
class B
5
{
6
template <typename T> friend struct A;
7
B() {}
8
};
9
10
template <typename T>
11
struct A
12
{
13
A() noexcept(noexcept(B())) { }
14
};
15
16
struct C
17
{
18
C()
19
{
20
static_assert( !noexcept(A<int>()), "" );
21
}
22
};