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 debug/13431] ICE in dwarf2out.c:gen_type_die when compiling heavily templatized C++ code.


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


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