ICE on mainline (20050210) when compiling the the attached file f1.c
Compiles fine on 3.4.
> g++ -o f1.o f1.c
f1.c: In function 'void __static_initialization_and_destruction_0(int, int)':
f1.c:7: internal compiler error: in import_export_decl, at cp/decl2.c:1718
Please submit a full bug report,
with preprocessed source if appropriate.
Here's the source:
# 1 "f1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "f1.c"
# 1 "T14264.h" 1
struct S {
char k;
};
template <class T> void f(T const volatile S::* const volatile);
# 2 "f1.c" 2
char const volatile S::* volatile p00 = &S::k;
char const volatile S::* const p01 = &S::k;
int main(void)
{
return 0;
}
--
Summary: ICE in import_export_decl
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jgrimm2 at us dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: ppc64-unknown-linux
GCC host triplet: ppc64-unknown-linux
GCC target triplet: ppc64-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19878