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