home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3255 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.1 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.unc.edu!martin
  2. From: martin@cs.unc.edu (Kevin Martin)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: unterminated character constant
  5. Date: 26 Jan 1993 22:04:58 -0500
  6. Organization: The University of North Carolina at Chapel Hill
  7. Lines: 21
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1k3fg6INNmj2@borg.cs.unc.edu>
  12.  
  13. Compiling the following code segment (no compiler options):
  14.  
  15.     #if 0
  16.        This is a test of an if
  17.        This line isn't going to work
  18.        But this line will, as will the first line
  19.     #endif
  20.  
  21. with GCC 2.3.3 under Linux 0.99pl3 (i486), SunOs 4.1.1 (Sparc), and
  22. Ultrix 4.2 (DEC 5000) yields an the error:
  23.  
  24.     a.c:3: unterminated character constant
  25.  
  26. The problem is the single quote.  It also happens if you use an #ifdef,
  27. but doesn't happen if you put the text inside a comment.
  28.  
  29. Kevin
  30. ___
  31. Kevin E. Martin               University of North Carolina at Chapel Hill
  32. martin@cs.unc.edu                          Department of Computer Science
  33.  
  34.