public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/41748]  New: Continued lines are not merged into one long line
@ 2009-10-19  7:08 d dot g dot gorbachev at gmail dot com
  2009-10-19  8:13 ` [Bug preprocessor/41748] " jakub at gcc dot gnu dot org
  2009-10-19 13:18 ` [Bug preprocessor/41748] Adjust documentation to reflect new (afrer rev. 152599) cpp behavior d dot g dot gorbachev at gmail dot com
  0 siblings, 2 replies; 4+ messages in thread
From: d dot g dot gorbachev at gmail dot com @ 2009-10-19  7:08 UTC (permalink / raw)
  To: gcc-bugs

This is a testcase (a space before a backslash or after a newline, and two
pairs of quotes (or no quotes at all), are important):

"hello," \
"world"

In GCC 4.5.0 20091015, preprocessor produces this:

# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
"hello,"
 "world"

whereas older GCC versions give this:

# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
"hello," "world"

Such a new behavior seems to be in contradiction with what the documentation
says: "the backslash is removed and the following line is joined with the
current one."


-- 
           Summary: Continued lines are not merged into one long line
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot g dot gorbachev at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-41748-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-01-27  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19  7:08 [Bug preprocessor/41748] New: Continued lines are not merged into one long line d dot g dot gorbachev at gmail dot com
2009-10-19  8:13 ` [Bug preprocessor/41748] " jakub at gcc dot gnu dot org
2009-10-19 13:18 ` [Bug preprocessor/41748] Adjust documentation to reflect new (afrer rev. 152599) cpp behavior d dot g dot gorbachev at gmail dot com
     [not found] <bug-41748-4@http.gcc.gnu.org/bugzilla/>
2011-01-27 10:11 ` d.g.gorbachev at gmail dot com

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).