[Bug c++/11471] ICE on illegal use of typedef'd member class
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 9 14:18:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list