gcc/tests/Regression/bz703059-g-fails-to-compile-a-program-that-has-a-template/f.cc

16 lines
205 B
C++
Raw Normal View History

2022-07-29 14:27:49 +00:00
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;