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++/47987] ICE on legal code (when attempting to inline non-implicitly instantiated template member function)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47987

--- Comment #1 from niemayer at isg dot de 2011-03-04 11:43:25 UTC ---
The line that gcc reports to cause the ICE contains:

 if (offset_a2->preallocate(text_1.length())) {

"offset_a2" is an instance of class Array<unsigned long, true, _T<AbsPtr>,
unsigned long> - if that class is declared to be an "extern template by

 extern template class Array<unsigned long, true, _T<AbsPtr>, unsigned long>;

before the function that causes the ICE, compilation works fine as well as it
does with implicit template instantiation. (All class names within namespace
"LKV").


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