public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/52852] New: The preprocessor fails to parse multi-line c++0x/c++11 raw strings.
@ 2012-04-03 19:10 bcmpinc at hotmail dot com
  2012-04-03 21:37 ` [Bug preprocessor/52852] [C++11] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bcmpinc at hotmail dot com @ 2012-04-03 19:10 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52852
           Summary: The preprocessor fails to parse multi-line c++0x/c++11
                    raw strings.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bcmpinc@hotmail.com


When compiling the following piece of code, using "g++ -v -save-temps a.cpp
-std=c++0x", the preprocessor fails to parse it correctly. This causes the
compilation to fail.

#include <cstdio>
#define log(a) printf("%s\n", a)
int main() {
        log(R"delimiter(
                Multi
                line
                raw
                string
        )delimiter");
}

The -save-temps output is attached.


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

end of thread, other threads:[~2013-08-13 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 19:10 [Bug preprocessor/52852] New: The preprocessor fails to parse multi-line c++0x/c++11 raw strings bcmpinc at hotmail dot com
2012-04-03 21:37 ` [Bug preprocessor/52852] [C++11] " redi at gcc dot gnu.org
2012-04-30 10:13 ` redi at gcc dot gnu.org
2013-08-13 15:49 ` jakub at gcc dot gnu.org
2013-08-13 17:03 ` jakub at gcc dot gnu.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).