🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

cc1plus crash on unparseable code

#218
From: Bill Trost
Date: Mon, 10 Aug 1992 21:01
25 lines
1906 bytes
The output below just about covers it.  This is Ultrix 4.2 (although I
got identical results under SunOS 4.1).

$ cat /tmp/*.cc
class c {
    void f() {
        while (int p = 0) {
            int q = 0;
        }
    }
};
$ gcc -v /tmp/*.cc
Reading specs from /local/lib/gcc-lib/decstation/2.2.2/specs
gcc version 2.2.2
 /local/lib/gcc-lib/decstation/2.2.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__ANSI_COMPAT -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_2 -Dhost_mips -Dmips -Dultrix -Dunix -D__ANSI_COMPAT -D__MIPSEL__ -D__R3000__ -D__SYSTYPE_BSD__ -D___SYSTYPE_BSD__ -D__bsd4_2__ -D__host_mips__ -D__mips__ -D__ultrix__ -D__unix__ -D__ANSI_COMPAT -D__MIPSEL -D__R3000 -D__SYSTYPE_BSD -D___SYSTYPE_BSD -D__bsd4_2 -D__host_mips -D__mips -D__ultrix -D__unix -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAG
E_C_PLUS_PLUS -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C /tmp/crash.cc /usr/tmp/cca16220.i
GNU CPP version 2.2.2 [AL 1.1, MM 19] DECstation running ultrix
 /local/lib/gcc-lib/decstation/2.2.2/cc1plus /usr/tmp/cca16220.i -quiet -dumpbase crash.cc -version -o /usr/tmp/cca16220.s
GNU C++ version 2.2.2 [AL 1.1, MM 19] DECstation running ultrix compiled by GNU C version 2.2.2.
/tmp/crash.cc:7: warning: all class member functions are private
/tmp/crash.cc: In method `void  c::f ()':
/tmp/crash.cc:3: parse error before `0'
/tmp/crash.cc: At top level:
/tmp/crash.cc:6: parse error at end of saved function text
gcc: Internal compiler error: program cc1plus got fatal signal 11
Technical Details
Message-ID: <m0mHgrd-0003DXC@romulus.reed.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!reed.edu!trost

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!reed.edu!trost
From: trost@reed.edu (Bill Trost)
Subject: cc1plus crash on unparseable code
Message-ID: <m0mHgrd-0003DXC@romulus.reed.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 10 Aug 1992 21:01:00 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 25