[gnu.g++.bug] short program kill g++ 1.32 on sparc

schmidt%crimee.ics.uci.edu@PARIS.ICS.UCI.EDU ("Douglas C. Schmidt") (01/03/89)

Hi,

  The following brief C++ program causes a failed assertion in g++
1.32 ( cfront 1.2.1 accepts this without complaint ):

----------------------------------------
class X {
public:
   operator int X::* ( void );
   
};
----------------------------------------

Here is the diagnostic:

----------------------------------------
g++ version 1.32.0
 /usr/public/lib/g++/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dsparc
-Dsun -Dunix bug.c /tmp/cca16600.cpp
GNU CPP version 1.32
 /usr/public/lib/g++/gcc-c++ /tmp/cca16600.cpp -quiet -dumpbase bug.c
-version -o /tmp/cca16600.s
GNU C++ version 1.32.0 (sparc) compiled by GNU C version 1.31.
bug.c:3: invalid scope request in operator <typename>
Failed assertion 0 at line 4762 of `cplus-decl.c'.
/usr/public/g++: Program c++ got fatal signal 6.
----------------------------------------

Doug