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
/
nsdmi3.C
blob
8276eab8f8056f57614e8b74b6fd400792251ab8
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;
17
18
// { dg-prune-output "B::B. is not usable" }
19
// { dg-prune-output "B::a1" }