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
/
nsdmi3.C
blob
d2e74392487558a6140240ae904d22d618d70a14
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
int i;
6
explicit constexpr A(int i): i(i) {}
7
};
8
9
struct B
10
{
11
A a1 = 1; // { dg-error "" }
12
A a2 { 2 };
13
A a3 = { 3 }; // { dg-error "explicit" }
14
};
15
16
constexpr B b; // { dg-error "B::B" }
17
18
// { dg-prune-output "B::a1" }