public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified
@ 2004-06-10 19:58 pkoning at equallogic dot com
  2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pkoning at equallogic dot com @ 2004-06-10 19:58 UTC (permalink / raw)
  To: gcc-bugs

gcc -E --traditional-cpp test.c

test.c is:
#ifdef notyet
not yet
#endif // comment

Results in:
# 1 "../cvs162/NetBSD162/src/test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "../cvs162/NetBSD162/src/test.c"
../cvs162/NetBSD162/src/test.c:0: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

According to gdb, the abort is in _cpp_process_line_notes.  I dug a bit and it
looks like it's processing the "sentinel" line note, which the comment says
should never be processed.  That's as far as I managed to get.

-- 
           Summary: Preprocessor dies on // comment if --traditional-cpp is
                    specified
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pkoning at equallogic dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-netbsdelf1.6.2
  GCC host triplet: i386-unknown-netbsdelf1.6.2
GCC target triplet: i386-unknown-netbsdelf1.6.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15913


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-04 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 19:58 [Bug preprocessor/15913] New: Preprocessor dies on // comment if --traditional-cpp is specified pkoning at equallogic dot com
2004-06-10 22:34 ` [Bug preprocessor/15913] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-26  8:41 ` neil at gcc dot gnu dot org
2004-06-28 20:40 ` cvs-commit at gcc dot gnu dot org
2004-06-28 20:41 ` [Bug preprocessor/15913] [3.5 " pinskia at gcc dot gnu dot org
2004-07-04 12:58 ` cvs-commit at gcc dot gnu dot org
2004-07-04 12:59 ` neil at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).