This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13740] ICE when mangling template which uses typeof
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2004 16:17:06 -0000
- Subject: [Bug c++/13740] ICE when mangling template which uses typeof
- References: <20040119145352.13740.ian@airs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-01-19 16:17 -------
Subject: Re: New: ICE when mangling template which uses typeof
"ian at airs dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| I get an ICE when compiling this test case with the current mainline:
|
| template<int n> class X {template<class Y> typeof(Y::y) foo(typeof(Y::y));};
| class Y { public: static int y; };
| typeof(Y::y) X<0>::foo<Y>(typeof(Y::y)) { }
|
| foo4.cc:3: internal compiler error: in write_type, at cp/mangle.c:1558
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I think this is a know bug. Nathan and I had exchanged mails on this
topic when I first implemented the C++ decltype proposal on the
cxx-reflection-branch.
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02242.html
and I believe I have implemented that on the cxx-reflection branch.
Maybe you might want to review his suggestion in the message
referenced above.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13740