From gcc-bugs Fri Aug 06 13:26:39 1999 From: Leon Bottou Date: Fri, 06 Aug 1999 13:26:39 +0000 To: gcc-bugs Subject: INTERNAL COMPILER ERROR IN GCC-2.95-release X-MARC-Message: https://marc.info/?l=gcc-bugs&m=93394561108544 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------58C422AEC07ABAE249F52294" This is a multi-part message in MIME format. --------------58C422AEC07ABAE249F52294 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit SYMPTOM: -------- % g++ -c bug.cpp bug.cpp:37: Internal compiler error. bug.cpp:37: Please submit a full bug report. bug.cpp:37: See for instructions GCC VERSION ----------- % g++ -v Reading specs from /home/snwiz/M-SGI/egcs32/lib/gcc-lib/mips-sgi-irix5.3/2.95/specs gcc version 2.95 19990728 (release) % uname -a IRIX odeux 6.5 01221553 IP32 % cat ~snwiz/packages/gcc/egcs/COMPILE/SGI32/config.status #!/bin/sh # This file was generated automatically by configure. Do not edit. # This directory was configured as follows: ../../configure --with-gcc-version-trigger=/home/snwiz/packages/gcc/egcs/gcc/version.c --host=mips-sgi-irix5.3 --with-gnu-as --with-stabs --prefix=/home/snwiz/M-SGI/egcs32 --norecursion # using "mh-frag" Thanks for your work. - Leon Bottou. --------------58C422AEC07ABAE249F52294 Content-Type: text/plain; charset=us-ascii; name="bug.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bug.cpp" /** Namespace for containers. This class is used as a namespace for global identifiers related to the implementation of containers. It is inherited by all container objects. */ class GCont { private: // --- Base class for list nodes struct Node { Node *next; Node *prev; }; // -- Class for list nodes template struct ListNode : public Node { T val; ListNode(); ListNode(const T &ref) : val(ref) { } ; }; // -- Class for map nodes showing the hash struct HNode : public Node { unsigned int hashcode; }; // -- Class for map nodes showing the hash and the key template struct SetNode : public HNode { K key; SetNode(const K &key) : key(key) { } ; }; // -- Class for map nodes with everything template struct MapNode : public SetNode { T val; MapNode(const K &key) : SetNode(key) { } ; }; }; --------------58C422AEC07ABAE249F52294 Content-Type: text/plain; charset=us-ascii; name="bug.ii" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bug.ii" # 1 "bug.cpp" class GCont { private: struct Node { Node *next; Node *prev; }; template struct ListNode : public Node { T val; ListNode(); ListNode(const T &ref) : val(ref) { } ; }; struct HNode : public Node { unsigned int hashcode; }; template struct SetNode : public HNode { K key; SetNode(const K &key) : key(key) { } ; }; template struct MapNode : public SetNode { T val; MapNode(const K &key) : SetNode(key) { } ; }; }; --------------58C422AEC07ABAE249F52294 Content-Type: text/plain; charset=us-ascii; name="bug.s" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bug.s" .file 1 "bug.cpp" .option pic2 gcc2_compiled.: __gnu_compiled_cplusplus: --------------58C422AEC07ABAE249F52294--