This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
- 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: 5 Oct 2003 15:49:36 -0000
- Subject: [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
- References: <20031003012913.12495.merkert@charter.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.