public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3254: Internal compiler error on __static_initialization_and_destruction_0
@ 2001-06-19  3:36 akr
  0 siblings, 0 replies; only message in thread
From: akr @ 2001-06-19  3:36 UTC (permalink / raw)
  To: gcc-gnats

>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
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-19  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-19  3:36 c++/3254: Internal compiler error on __static_initialization_and_destruction_0 akr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).