blob: 9f76d0ddf7352babbf23d1d327312bd6a5095930 [file] [log] [blame]
/* 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|literal operator" } */
A<T(0i)> a2; /* { dg-error "imaginary constants are a GCC extension|literal operator" } */
};