preprocessor/2789: #line directive disallows legal filenames

wsmith@fwi.com wsmith@fwi.com
Wed May 9 04:46:00 GMT 2001


>Number:         2789
>Category:       preprocessor
>Synopsis:       #line directive disallows legal filenames
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 09 04:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Bill Smith
>Release:        gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
Red Hat Linux 6.2/Athlon 500MHz
>Description:
The preprocessor disallows #line directives that the standard allows.
For example:
#line 1 "\\a-file"
or 
#line 1 "\"message\""
The error message is:
invalid format `#line' directive
>How-To-Repeat:
create a file containing 1 line:
#line 1 "\\\""
and attempt to compile
>Fix:
none known.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list