This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11471] ICE on illegal use of typedef'd member class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2003 14:18:56 -0000
- Subject: [Bug c++/11471] ICE on illegal use of typedef'd member class
- References: <20030709084731.11471.bagnara@cs.unipr.it>
- 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=11471
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-07-09 14:18:55
date| |
Summary|g++ segfaults (at probably |ICE on illegal use of
|illegal code) |typedef'd member class
------- Additional Comments From bangerth at dealii dot org 2003-07-09 14:18 -------
Yes, the code is invalid, and yes gcc versions 3.2, 3.3 and mainline
ICE on that (don't have older versions on this machine, sorry). Here's
a cut down testcase:
------------------------
template <typename T>
struct X {
typedef typename T::type type;
};
template <typename T>
X<T>::type::type() {}
-------------------------
tmp/gg> c++ -c y.cc
y.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
W.