Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept20.C
blob: ec4f3a153354eeec975de4c833e6c32ffc2d78d3 [
file
] [
log
] [
blame
]
// PR c++/56071
// { dg-do compile { target c++11 } }
class
B
{
template
<
typename
T
>
friend
struct
A
;
B
()
{}
};
template
<
typename
T
>
struct
A
{
A
()
noexcept
(
noexcept
(
B
()))
{
}
};
struct
C
{
C
()
{
static_assert
(
!
noexcept
(
A
<int>
()),
""
);
}
};