This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39444] ICE caused by default template argument
- 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: 16 Apr 2009 20:50:14 -0000
- Subject: [Bug c++/39444] ICE caused by default template argument
- References: <bug-39444-17440@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2009-04-16 20:50 -------
The trunk gives:
t.cc:18: error: a cast to a type other than an integral or enumeration type
cannot appear in a constant-expression
t.cc:18: error: template argument 2 is invalid
t.cc:18: error: invalid type in declaration before ?;? token
So does 4.4.0
So closing as fixed for 4.4.0
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |ice-on-invalid-code
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39444