This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83473] New: pragme problems with raw string literals


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83473

            Bug ID: 83473
           Summary: pragme problems with raw string literals
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: smw at gcc dot gnu.org
  Target Milestone: ---

The following C++ code fails under GCC.

  _Pragma ( R"()" )

The error message is as follows.

  1 : <source>:1:1: warning: missing terminating " character
   _Pragma ( R"()" )
   ^

ICC and MSVC ICE on this construct, and clang complains about missing parens.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]