[Boost-bugs] [Boost C++ Libraries] #12602: C++11 raw string literals with embedded escapes are mislexed

Subject: [Boost-bugs] [Boost C++ Libraries] #12602: C++11 raw string literals with embedded escapes are mislexed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-11 03:38:33


#12602: C++11 raw string literals with embedded escapes are mislexed
------------------------------+---------------------
 Reporter: edaskel@… | Owner: hkaiser
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: wave
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Raw string literals are partly intended to make it easier to write strings
 that would otherwise require extensive escaping - e.g., regular
 expressions. Unfortunately Wave seems to get confused when backslashes
 appear in C++11 raw string literals. For example:

 R"(A\+)"

 is parsed by compilers as a string of three characters: A, backslash, and
 +. Wave lexes this as an unterminated raw string literal followed by six
 individual character tokens. By contrast:

 R"(A+)"

 is correctly parsed as a two-character raw string literal.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12602>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC