summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/template22.C
blob: c93375685253a386a9ca0f19ff4bbbad8fd0e941 (plain)
1
2
3
4
5
/* PR c++/29731. This used to ICE in uses_template_parms. */

template<int> struct A {};

A<({})> a; /* { dg-error "forbids braced-groups within expressions|statement-expressions|template argument 1 is invalid|invalid type" } */