This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34397] [4.3 regression] ICE on invalid default template parameter
- 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: 8 Dec 2007 22:53:29 -0000
- Subject: [Bug c++/34397] [4.3 regression] ICE on invalid default template parameter
- References: <bug-34397-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-12-08 22:53 -------
If I add:
A<int> a;
The code is rejected:
t.cc:7: error: subscripted value is neither array nor pointer
t.cc:7: error: template argument 2 is invalid
t.cc:7: error: invalid type in declaration before ';' token
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34397