This is the mail archive of the gcc-prs@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]

c++/3254: Internal compiler error on __static_initialization_and_destruction_0



>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        <iostream.h>

class bits
{
  void extract();
};
void
bits::extract() 
{
  cout << 0;
}

template <class Item>
class array {
protected:
  int i;
  static array<Item>* pool;
  static int max_pool;

public:
  ~array();

};

template <class Item>
array<Item>* array<Item>::pool =
  (array<Item>*) new char[array<Item>::max_pool * sizeof(array<Item>)];

template <class Item>
array<Item>::~array()
{
  pool[0].i = 0;
}

template <class Item>
class set : public array<Item>
{
};

template <class Label>
class inst
{
};

template <class Label>
class fm
{
  set<inst<Label> > arcs;
};
int
main(int argc, char** argv)
{
  fm<char> 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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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
 


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