home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / bug / 1847 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  49 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!etca.fr!dumesnil
  3. From: dumesnil@etca.fr (Antoine de Maricourt)
  4. Subject: bug G++
  5. Message-ID: <9211191818.AA18320@jupiter.etca.fr>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 19 Nov 1992 20:18:34 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 36
  12.  
  13. Hi again,
  14.  
  15. I reported a bug to g++ yesterday. Here is another one (maybe the same). 
  16. The configuration is the same. There is a syntax error of course but I get signal 11 again.
  17.  
  18. >cat d.cxx
  19.  
  20. class INT : {
  21.   long obj;
  22.  public:
  23.   INT (int i)        { obj = (i << 3) ; }
  24.   operator int ()    { return obj >> 2; }
  25. };
  26.  
  27. main () 
  28. {
  29.   register INT  i = 3;
  30. }
  31.  
  32. >g++ -S d.cxx
  33. d.cxx:2: parse error before `{'
  34. /usr/local/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11
  35.  
  36.  
  37. By the way, if I remove the ':', I get the following message with option -O2 :
  38. d.cxx: In function `int  main ()':
  39. d.cxx:11: warning: address requested for `i', which is declared `register'
  40.  
  41. It were OK if I were using variable 'i' but I don't. I thought I would have got a message
  42. telling I am not using 'i' instead ?  
  43.  
  44. If you have any idea how I could find and remove the bug, I would appreciate any help.
  45. Thanks.
  46.         
  47.         A. de Maricourt
  48.  
  49.