🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1664

unterminated character constant

#1664
From: Kevin Martin
Date: Wed, 27 Jan 1993 03:04
20 lines
1176 bytes
Compiling the following code segment (no compiler options):

	#if 0
	   This is a test of an if
	   This line isn't going to work
	   But this line will, as will the first line
	#endif

with GCC 2.3.3 under Linux 0.99pl3 (i486), SunOs 4.1.1 (Sparc), and
Ultrix 4.2 (DEC 5000) yields an the error:

	a.c:3: unterminated character constant

The problem is the single quote.  It also happens if you use an #ifdef,
but doesn't happen if you put the text inside a comment.

Kevin
___
Kevin E. Martin               University of North Carolina at Chapel Hill
martin@cs.unc.edu                          Department of Computer Science
Technical Details
Message-ID: <1k3fg6INNmj2@borg.cs.unc.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: martin@cs.unc.edu (Kevin Martin)
Newsgroups: gnu.gcc.bug
Subject: unterminated character constant
Date: 26 Jan 1993 22:04:58 -0500
Organization: The University of North Carolina at Chapel Hill
Lines: 21
Sender: daemon@cis.ohio-state.edu
Approved: bug-gcc@prep.ai.mit.edu
Distribution: gnu
Message-ID: <1k3fg6INNmj2@borg.cs.unc.edu>