I just tried to compile Suse Linux package ruby-zypp-0.1-83 with the GNU C++ compiler version 4.3 snapshot 20070629 The compiler said /usr/include/boost/regex/v4/basic_regex_creator.hpp:515: internal compiler error: in expand_or_defer_fn, at cp/semantics.c:3220 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Preprocessed source code attached. No flags required.
Created attachment 13830 [details] gzipped C++ source code
Reduced testcase: namespace { template<class T> inline void char_less(void) { } template<> inline void char_less<char>(void) { } }
Caused by PR31923.
Subject: Bug 32596 Author: jakub Date: Tue Aug 28 16:08:02 2007 New Revision: 127863 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127863 Log: PR c++/32596 PR c++/32400 * pt.c (check_explicit_specialization): Set DECL_INTERFACE_KNOWN and DECL_NOT_REALLY_EXTERN if tmpl_func is not public. * g++.dg/ext/visibility/anon5.C: New test. Added: trunk/gcc/testsuite/g++.dg/ext/visibility/anon5.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog
Fixed.