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++/13740] ICE when mangling template which uses typeof


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


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