$ g++ posix_api.ii -c -gdwarf-2 -g2 -feliminate-dwarf2-dups -finline-functions internal compiler error: in output_pubnames, at dwarf2out.c:7380
Created attachment 12319 [details] testcase
Reducing.
reduced testcase: template <class charT> struct s { charT imp() const; }; template <class charT> charT s<charT>::imp() const { static const int masks[20] = {0}; } __extension__ extern template char s<char>::imp() const; int regcompA(void) { s<char> t; t.imp(); }
A regression hunt on powerpc-linux using the reduced testcase from comment #3 with "-g2 -feliminate-dwarf2-dups -finline-functions" identified the following patch: http://gcc.gnu.org/viewcvs?view=rev&rev=100802 r100802 | hubicka | 2005-06-09 16:21:36 +0000 (Thu, 09 Jun 2005) The failure also occurs with current trunk.
Closing 4.1 branch.
I can't reproduce this with current 4.4 sources.
The reduced testcase still fails on the 4.3 branch.
A patch was posted to http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00850.html Maybe some other cgraph changes in 4.4 fixes the problem.
This was most likely fixed for 4.4 by the removal of DECL_INLINE.
Closing 4.2 branch.
GCC 4.3.4 is being released, adjusting target milestone.
GCC 4.3.5 is being released, adjusting target milestone.
Fixed for 4.4.0.