This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29704] ICE: default non-type template argument of pointer-to-member type



------- 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:
[pinskia@celery ~]$ ~/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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]