This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13094] ICE in make_unbound_class_template, v 3.4 20031112
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2003 01:48:06 -0000
- Subject: [Bug c++/13094] ICE in make_unbound_class_template, v 3.4 20031112
- References: <20031117235959.13094.ron_hylton@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-11-18 01:47 -------
Confirmed.
Here's a shorter testcase:
=========================================================
template <typename> struct A {};
struct B
{
template <int> struct C {};
};
template <typename> struct D : A< B::template C<0> > {};
=========================================================
Mainline crashes with this snippet and previous versions issue
an error message, although the code is valid IMHO.
By adding "typename" before "B::template C<0>", one can make the code
compile.
The bug is related to PR 11715.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|i686-pc-cygwin |
GCC host triplet|i686-pc-cygwin |
GCC target triplet|i686-pc-cygwin |
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2003-11-18 01:48:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13094