------- Comment #1 from pinskia at gcc dot gnu dot org  2006-11-05 08:33 -------
4.2.0 rejects the code with the following error message:
[EMAIL PROTECTED] ~]$ ~/gcc-4.2/bin/gcc t1.cc
t1.cc:6: error: a cast to a type other than an integral or enumeration type
cannot appear in a constant-expression
t1.cc:6: error: template argument 1 is invalid
t1.cc:6: error: invalid type in declaration before ‘;’ token


4.0.4 accepts this code without any warning or error messages.


-- 


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

Reply via email to