This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29704] ICE: default non-type template argument of pointer-to-member type
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 08:33:04 -0000
- Subject: [Bug c++/29704] ICE: default non-type template argument of pointer-to-member type
- References: <bug-29704-1824@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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