🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1216

minor bug in g++-2.3.1

#1216
From: Jean-Marc Zucconi
Date: Wed, 18 Nov 1992 00:09
34 lines
1475 bytes
Hello,

I have encountered a little bug in g++-2.3.1. The following program generates
an internal compiler error.

// file foo.cc
class foo {
private:
    int t[10];
public:
    int bar(int i) {
	return t(i); // `obvious' error: should be t[i]
    }
};
// end of file

$ g++ -c foo.cc
foo.cc: In method `int  foo::bar (int)':
foo.cc:6: component `t' is not a method
/utilisateurs/jmz/bin/gcc: Internal compiler error: program cc1plus got fatal
 signal 11

Of course, this is a consequence of the syntax error and I (we) can live with 
such a bug, but I would prefer a smarter exit.

Best regards,

      Jean-Marc

    ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
    Jean-Marc Zucconi             |    internet: jmz@obsbec.dnet.circe.fr
    Observatoire de Besancon      |        or    jmz@obsbea.dnet.nasa.gov
    F 25010 Besancon cedex        |    span:     obsbea::jmz
    ======================================================================
Technical Details
Message-ID: <199211172209.AA27938@ciripa.circe.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!obsbec.dnet.circe.FR!jmz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!obsbec.dnet.circe.FR!jmz
From: jmz@obsbec.dnet.circe.FR (Jean-Marc Zucconi)
Newsgroups: gnu.g++.bug
Subject: minor bug in g++-2.3.1
Message-ID: <199211172209.AA27938@ciripa.circe.fr>
Date: 18 Nov 92 00:09:01 GMT
Article-I.D.: ciripa.199211172209.AA27938
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 34
Approved: bug-g++@prep.ai.mit.edu