This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33156] New: preprocessor precedence of string concatenation backwards?
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2007 05:02:38 -0000
- Subject: [Bug c++/33156] New: preprocessor precedence of string concatenation backwards?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The code:
#include <iostream>
#define foo(b) #b
int main() {
std::cerr << foo( "this is a long string "
"broken across lines "
"but constiuting one argument to the macro ") << "\n";
}
produces:
~/ootbc/personal/ivan$ a.out
"this is a long string " "broken across lines " "but constiuting one argument
to the macro "
Shouldn't the embedded quotes be elided?
--
Summary: preprocessor precedence of string concatenation
backwards?
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33156