🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2294

line number on error message in gcc 1.33

#2294
From: Andy Fyfe
Date: Tue, 14 Feb 1989 19:19
15 lines
876 bytes
Gcc reports the error about the missing quote on the last line where
a string appears, and not where the unterminated string appears.

% cat test.c
foo()
{
    printf("one);               /* no closing quote */
    printf("two");
    printf("three");
    printf("four");
    printf("five");             /* error reported on this line */
}
% gcc -c test.c
test.c:7: unterminated string or character constant
 7872 Exit 1               gcc -c test.c
Technical Details
Message-ID: <8902141919.AA15704@csvax.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy
From: andy@CSVAX.CALTECH.EDU (Andy Fyfe)
Newsgroups: gnu.gcc.bug
Subject: line number on error message in gcc 1.33
Message-ID: <8902141919.AA15704@csvax.caltech.edu>
Date: 14 Feb 89 19:19:32 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 15