repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-list2.C
blob
780a64dbbc429ef192d944723e327505537829d7
1
// PR c++/82461
2
// { dg-do compile { target c++11 } }
3
4
class A {
5
private:
6
public:
7
constexpr A() {}
8
~A() {}
9
};
10
11
class B {
12
private:
13
A a;
14
public:
15
constexpr B() : a{} {}
16
// works
17
// constexpr B() : a() {}
18
19
~B() {}
20
};