[Bug c++/13094] ICE in make_unbound_class_template, v 3.4 20031112

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 18 01:48:00 GMT 2003


------- 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



More information about the Gcc-bugs mailing list