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
/
nsdmi-template8.C
blob
ef0dddd7310e7438827854a4bdb094a45bdc07b9
1
// PR c++/58188
2
// { dg-do compile { target c++11 } }
3
4
struct B {};
5
struct A
6
{
7
A( B );
8
};
9
10
struct Bar
11
{
12
template< unsigned v >
13
struct Foo
14
{
15
A z = B();
16
unsigned value;
17
Foo(): value( v ) {}
18
};
19
20
struct Baz
21
{
22
Foo< 8 > foo1;
23
Foo< 1 > foo3;
24
};
25
};
26
27
Bar::Baz baz;