1/* This used to ICE (PR c++/29573) */
2/* { dg-do compile } */
3
4template<int> struct A {};
5
6template<typename> struct B : A <sizeof(=)> {}; /* { dg-error "template argument" } */
7
8template<typename> struct C : A <sizeof(=)> {}; /* { dg-error "template argument" } */
9
10int a;
11
12template<typename> struct D : A <sizeof(a=1)> {}; /* This used to ICE as well. */
13
14template<typename> struct E : A <sizeof(a=1)> {}; /* This used to ICE as well. */
15
16