| 1 |
/* PR c++/29731. This used to ICE in uses_template_parms. */ |
| 2 |
|
| 3 |
template<int> struct A {}; |
| 4 |
|
| 5 |
void foo() |
| 6 |
{ |
| 7 |
A<({})> a; /* { dg-error "forbids braced-groups within expressions|statement-expressions|template argument 1 is invalid|invalid type" } */ |
| 8 |
} |