Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-list2.C
blob: 780a64dbbc429ef192d944723e327505537829d7 [
file
] [
log
] [
blame
]
// PR c++/82461
// { dg-do compile { target c++11 } }
class
A
{
private
:
public
:
constexpr
A
()
{}
~
A
()
{}
};
class
B
{
private
:
A a
;
public
:
constexpr
B
()
:
a
{}
{}
// works
// constexpr B() : a() {}
~
B
()
{}
};