From mboxrd@z Thu Jan 1 00:00:00 1970 From: akr@m17n.org To: gcc-gnats@gcc.gnu.org Subject: c++/3254: Internal compiler error on __static_initialization_and_destruction_0 Date: Tue, 19 Jun 2001 03:36:00 -0000 Message-id: <200106191035.f5JAZPM18711@mule.m17n.org> X-SW-Source: 2001-06/msg00774.html List-Id: >Number: 3254 >Category: c++ >Synopsis: Internal compiler error on __static_initialization_and_destruction_0 >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Jun 19 03:36:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Tanaka Akira >Release: 3.0 >Organization: m17n >Environment: System: SunOS mule 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-80 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ../gcc-3.0/configure --prefix=/home/akr/src/gcc >Description: When I charange to compile Grail < http://www.csd.uwo.ca/research/grail/ > which uses template very aggressively by gcc, I gets Internal compiler error. >How-To-Repeat: % cat a.C #include class bits { void extract(); }; void bits::extract() { cout << 0; } template class array { protected: int i; static array* pool; static int max_pool; public: ~array(); }; template array* array::pool = (array*) new char[array::max_pool * sizeof(array)]; template array::~array() { pool[0].i = 0; } template class set : public array { }; template class inst { }; template class fm { set > arcs; }; int main(int argc, char** argv) { fm a; return 0; }; % bin/gcc a.C a.C:4: warning: all member functions in class `bits' are private include/g++-v3/bits/locale_facets.tcc: In function `void __static_initialization_and_destruction_0(int, int)': include/g++-v3/bits/locale_facets.tcc:26: Internal compiler error in find_function_data, at function.c:328 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. % bin/gcc -v Reading specs from bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.0/specs Configured with: ../gcc-3.0/configure --prefix=/home/akr/src/gcc Thread model: posix gcc version 3.0 % >Fix: I don't know. >Release-Note: >Audit-Trail: >Unformatted: % bin/gcc -v Reading specs from bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.0/specs Configured with: ../gcc-3.0/configure --prefix=/home/akr/src/gcc Thread model: posix gcc version 3.0