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

  1. Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!obsbec.dnet.circe.FR!jmz
  2. From: jmz@obsbec.dnet.circe.FR (Jean-Marc Zucconi)
  3. Newsgroups: gnu.g++.bug
  4. Subject: minor bug in g++-2.3.1
  5. Message-ID: <199211172209.AA27938@ciripa.circe.fr>
  6. Date: 18 Nov 92 00:09:01 GMT
  7. Article-I.D.: ciripa.199211172209.AA27938
  8. Sender: gnulists@ai.mit.edu
  9. Distribution: gnu
  10. Organization: GNUs Not Usenet
  11. Lines: 34
  12. Approved: bug-g++@prep.ai.mit.edu
  13.  
  14. Hello,
  15.  
  16. I have encountered a little bug in g++-2.3.1. The following program generates
  17. an internal compiler error.
  18.  
  19. // file foo.cc
  20. class foo {
  21. private:
  22.     int t[10];
  23. public:
  24.     int bar(int i) {
  25.     return t(i); // `obvious' error: should be t[i]
  26.     }
  27. };
  28. // end of file
  29.  
  30. $ g++ -c foo.cc
  31. foo.cc: In method `int  foo::bar (int)':
  32. foo.cc:6: component `t' is not a method
  33. /utilisateurs/jmz/bin/gcc: Internal compiler error: program cc1plus got fatal
  34.  signal 11
  35.  
  36. Of course, this is a consequence of the syntax error and I (we) can live with 
  37. such a bug, but I would prefer a smarter exit.
  38.  
  39. Best regards,
  40.  
  41.       Jean-Marc
  42.  
  43.     ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
  44.     Jean-Marc Zucconi             |    internet: jmz@obsbec.dnet.circe.fr
  45.     Observatoire de Besancon      |        or    jmz@obsbea.dnet.nasa.gov
  46.     F 25010 Besancon cedex        |    span:     obsbea::jmz
  47.     ======================================================================
  48.