| 1 |
// PR c++/29435 |
| 2 |
|
| 3 |
template < class T > struct A {}; |
| 4 |
template < int> void g() |
| 5 |
{ |
| 6 |
sizeof (A < int>); |
| 7 |
} |
| 8 |
|
| 9 |
template < class T > struct B; |
| 10 |
template < int> void f() |
| 11 |
{ |
| 12 |
sizeof (B<int>); // { dg-error "3:invalid application of .sizeof. to incomplete type" } |
| 13 |
} |
| 14 |
|