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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-template14.C
blob
a885a2412796a883be99c3aae5282c664643fbc5
1
// PR c++/58583
2
// { dg-do compile { target c++11 } }
3
4
template<int> struct A
5
{
6
int i = (A<0>(), 0); // { dg-error "recursive instantiation of default" }
7
};
8
9
A<0> a;
10
11
template<int N> struct B
12
{
13
B* p = new B<N>; // { dg-error "recursive instantiation of default" }
14
};
15
16
B<1> x;
17
18
struct C
19
{
20
template<int N> struct D
21
{
22
D* p = new D<0>;
23
};
24
};