This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12495


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|ice-on-invalid-code         |monitored


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-05 15:49 -------
The problem is the template parameter in the constructor of the local class.
Here's a shorter testcase to illustrate this:

=========================================
template <typename> struct A {};

template <typename T> void foo()
{
    struct B
    {
        B (const A<T>&);
    };
}
=========================================

I'm removing the "ice-on-invalid-code" keyword, since the invalid parts
of the first testcase have nothing to do with the ICE.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]