summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/template23.C
blob: 893d78d15da8c05f6ed55da20447dc651bd0c46b (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c++/30895 This used to ICE.  */
/* { dg-do compile } */

template<int> struct A {};

template<typename T> struct B
{
  A<T(0i)> a1; /* { dg-error "imaginary constants are a GCC extension" } */
  A<T(0i)> a2; /* { dg-error "imaginary constants are a GCC extension" } */
};