gcc/tests/Regression/bz703059-g-fails-to-compile-a-program-that-has-a-template/f.cc
2022-07-29 16:27:49 +02:00

16 lines
205 B
C++

template <bool C> int func (void);
template <class T> struct Foo
{
static const unsigned int a = sizeof (T);
//enum { b = a };
enum
{
c = sizeof (func < (a == 0) > ())
};
};
Foo <int> x;