[Bug c++/15554] [3.4/3.5 Regression] ICE in tsubst_copy, at cp/pt.c:7433

hzoli at austin dot ibm dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 8 16:55:00 GMT 2004


------- Additional Comments From hzoli at austin dot ibm dot com  2004-06-08 16:55 -------
(In reply to comment #7)
> template <int n> struct T2 { enum { N = n, N1 = T1<N>::N }; };

It seems it does not like incomplete enums, since this works:

template <int n> struct T2
{ enum { N = n }; enum { N1 = T1<N>::N }; };


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15554



More information about the Gcc-bugs mailing list