This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

preprocessor/2789: #line directive disallows legal filenames



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]