🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

bug G++

#1220
From: Antoine de Maricourt
Date: Thu, 19 Nov 1992 20:18
35 lines
1375 bytes
Hi again,

I reported a bug to g++ yesterday. Here is another one (maybe the same). 
The configuration is the same. There is a syntax error of course but I get signal 11 again.

>cat d.cxx

class INT : {
  long obj;
 public:
  INT (int i)        { obj = (i << 3) ; }
  operator int ()    { return obj >> 2; }
};

main () 
{
  register INT  i = 3;
}

>g++ -S d.cxx
d.cxx:2: parse error before `{'
/usr/local/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11


By the way, if I remove the ':', I get the following message with option -O2 :
d.cxx: In function `int  main ()':
d.cxx:11: warning: address requested for `i', which is declared `register'

It were OK if I were using variable 'i' but I don't. I thought I would have got a message
telling I am not using 'i' instead ?  

If you have any idea how I could find and remove the bug, I would appreciate any help.
Thanks.
        
        A. de Maricourt
Technical Details
Message-ID: <9211191818.AA18320@jupiter.etca.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!etca.fr!dumesnil

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!etca.fr!dumesnil
From: dumesnil@etca.fr (Antoine de Maricourt)
Subject: bug G++
Message-ID: <9211191818.AA18320@jupiter.etca.fr>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 19 Nov 1992 20:18:34 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 36