home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / bug / 1862 < prev    next >
Encoding:
Text File  |  1992-11-24  |  803 b   |  37 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb
  3. From: dcb@us-es.SEl.DE
  4. Subject: ARM page 87
  5. Message-ID: <9211231051.AA11287@us-es.sel.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 23 Nov 1992 12:51:38 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 24
  12.  
  13. Hello there,
  14.  
  15. See section 6.4.2 of the ARM. Top of page 87. GNU G++ 2.3.1 does not do the
  16. right thing for the following code derived from the example.
  17.  
  18. int main() {
  19.     int a;
  20.  
  21.     switch (a) {
  22.     case 1:
  23.         int v2 = 3;
  24.     case 2:
  25.         if (v2 == 7)    // error not flagged by 2.3.1
  26.             ;
  27.     }
  28.  
  29.     return 0;
  30. }
  31.  
  32. Regards
  33.  
  34. David C Binderman     Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
  35. D-7000 Stuttgart 40, Germany      dcb@us-es.sel.de   Tel: +49 711 821 3841
  36.  
  37.