This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/13431] ICE in dwarf2out.c:gen_type_die when compiling heavily templatized C++ code.
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2003 14:02:33 -0000
- Subject: [Bug debug/13431] ICE in dwarf2out.c:gen_type_die when compiling heavily templatized C++ code.
- References: <20031218123830.13431.Simon.Richter@hogyros.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2003-12-18 14:02 -------
Here's a smaller testcase:
-----------------------
template <typename> struct S {
template <int> struct L {
typedef int type;
};
};
template <typename T> struct X {
struct L {
typename S<T>::L<2>::type *data;
};
L bar() {};
};
X<int>::L l;
---------------------------
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -g y.cc -c
y.cc: In instantiation of `X<int>::L':
y.cc:14: instantiated from here
y.cc:8: internal compiler error: in gen_type_die, at dwarf2out.c:11653
Please submit a full bug report,
This crashes all my gcc versions up to and including 3.3.3pre. It is fixed
in mainline, though, once I insert the "template" into the appropriate
place of line 9.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
GCC build triplet|sparc-sun-solaris2.9 |
GCC host triplet|sparc-sun-solaris2.9 |
GCC target triplet|sparc-sun-solaris2.9 |
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13431