public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly
@ 2011-04-23  9:16 kayhayen at gmx dot de
  2011-04-23  9:17 ` [Bug c++/48740] " kayhayen at gmx dot de
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: kayhayen at gmx dot de @ 2011-04-23  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Raw C++0x strings and trigraphs mix badly
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kayhayen@gmx.de


Created attachment 24078
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24078
One liner with constant demonstrating the error.

Hello there,

my file has just one line:

char const *R = "raw(foo%sbar%sfred%sbob?????)raw";

This is supposed to work, but gives:

g++-4.6 -c -std=c++0x -Wall -Werror something.build/__constants.cpp 
something.build/__constants.cpp:2:44: error: trigraph ??) converted to ]
[-Werror=trigraphs]
cc1plus: all warnings being treated as errors

Adding a space before the closing ")" of the raw string gives me no problem at
all. I have had instances where the compiler complained about an unterminated
strings constant after shuffling raw strings around. Having multiple raw
strings in my file, separated by raw()raw each, it seems, I had the case, where
a raw constant would eat up towards the next, very unpleasant.

Question: Are trigraphs still in C++0x, are they supposed to be applied to raw
strings too? How can I disable trigraphs. I only found an option to enable it,
and a reference that -std would.

Note: I really want to use raw strings to encode arbitrary data for my Python
compiler. I truly need a way to avoid trigraphs. So please remove trigraphs
from the C++0x case, or add an option to disable them.

Yours,
Kay Hayen


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
@ 2011-04-23  9:17 ` kayhayen at gmx dot de
  2011-04-23 10:22 ` daniel.kruegler at googlemail dot com
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kayhayen at gmx dot de @ 2011-04-23  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Kay Hayen <kayhayen at gmx dot de> 2011-04-23 09:17:04 UTC ---
Just to note: I found this bug with 4.5.2 originally. I then used 4.6 only to
check that it wasn't solved in the mean time.


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
  2011-04-23  9:17 ` [Bug c++/48740] " kayhayen at gmx dot de
@ 2011-04-23 10:22 ` daniel.kruegler at googlemail dot com
  2011-04-23 10:30 ` redi at gcc dot gnu.org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-04-23 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-04-23 10:22:27 UTC ---
(In reply to comment #1)
> Just to note: I found this bug with 4.5.2 originally. I then used 4.6 only to
> check that it wasn't solved in the mean time.

Please always ensure that the defect still exists in the most recent compiler
version, which is 4.7. I verified that 4.7.0 20110422 (experimental) still
contains this warning.

In regard to your questions: Standard C++0x does still contain trigraphs, so a
conforming compiler has to handle them correctly. But any trigraph
transformations that happened within a raw string shall be reverted afterwards,
es clearly expressed in [lex.pptoken] p. 3 b. 1:

"If the next character begins a sequence of characters that could be the prefix
and initial double quote of a raw string literal, such as R", the next
preprocessing token shall be a raw string literal. Between the initial and
final double quote characters of the raw string, any transformations performed
in phases 1 and 2 (trigraphs, universal-character-names, and line splicing) are
reverted; this reversion shall apply before any d-char, r-char, or delimiting
parenthesis is identified."

The most important aspect is to test that this is not just a warning, but that
trigraph transformations have indeed been performed. I can confirm this to
happen with gcc 4.7 200110409 (4.7.0 20110422 version cannot produce executable
programs), so this is clearly not only a false warning.


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
  2011-04-23  9:17 ` [Bug c++/48740] " kayhayen at gmx dot de
  2011-04-23 10:22 ` daniel.kruegler at googlemail dot com
@ 2011-04-23 10:30 ` redi at gcc dot gnu.org
  2011-04-23 10:55 ` jakub at gcc dot gnu.org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-23 10:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.23 10:29:36
     Ever Confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-23 10:29:36 UTC ---
confirmed


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (2 preceding siblings ...)
  2011-04-23 10:30 ` redi at gcc dot gnu.org
@ 2011-04-23 10:55 ` jakub at gcc dot gnu.org
  2011-04-23 10:59 ` daniel.kruegler at googlemail dot com
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 10:55:24 UTC ---
"raw(foo%sbar%sfred%sbob?????)raw" is not a raw string literal,
R"raw(foo%sbar%sfred%sbob?????)raw" is, and that one doesn't warn or error and
is handled correctly.


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (3 preceding siblings ...)
  2011-04-23 10:55 ` jakub at gcc dot gnu.org
@ 2011-04-23 10:59 ` daniel.kruegler at googlemail dot com
  2011-04-23 11:05 ` redi at gcc dot gnu.org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-04-23 10:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-04-23 10:58:44 UTC ---
(In reply to comment #4)
> "raw(foo%sbar%sfred%sbob?????)raw" is not a raw string literal,
> R"raw(foo%sbar%sfred%sbob?????)raw" is, and that one doesn't warn or error and
> is handled correctly.

<blush> you are right, I completely missed the lack of the R prefix here


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (4 preceding siblings ...)
  2011-04-23 10:59 ` daniel.kruegler at googlemail dot com
@ 2011-04-23 11:05 ` redi at gcc dot gnu.org
  2011-04-23 11:06 ` kayhayen at gmx dot de
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-23 11:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-23 11:05:18 UTC ---
Oops! thanks, Jakub!


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (5 preceding siblings ...)
  2011-04-23 11:05 ` redi at gcc dot gnu.org
@ 2011-04-23 11:06 ` kayhayen at gmx dot de
  2011-04-23 11:14 ` daniel.kruegler at googlemail dot com
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kayhayen at gmx dot de @ 2011-04-23 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Kay Hayen <kayhayen at gmx dot de> 2011-04-23 11:05:52 UTC ---
Created attachment 24079
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24079
Sorry for the typo, that's what you get for extracting test case. This one is
better.

With this one I can reproduce my original worry indeed:

[~]> g++ -c --std=c++0x testcase.cpp -Wall -Werror
testcase.cpp:2:17: error: unterminated raw string
testcase.cpp:2:15: error: expected primary-expression at end of input
testcase.cpp:2:15: error: expected ‘,’ or ‘;’ at end of input

Since the trigraph eats up the trigraph terminator, it's not terminated. Now
imagine a second constant in the same file and you do get a corrupted output.


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (6 preceding siblings ...)
  2011-04-23 11:06 ` kayhayen at gmx dot de
@ 2011-04-23 11:14 ` daniel.kruegler at googlemail dot com
  2011-04-23 11:25 ` kayhayen at gmx dot de
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-04-23 11:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-04-23 11:14:01 UTC ---
(In reply to comment #7)
> Created attachment 24079 [details]
> Sorry for the typo, that's what you get for extracting test case. This one is
> better.

I cannot reproduce this warning with gcc 4.7. If I create a program with
observable behaviour like this:

#include <cstdio>

char const *R = R"raw(foo%sbar%sfred%sbob?????)raw";

int main()
{
  std::printf("%s\n", R);
}

the output is loss-free and whithout remaining trigraph transformations:

foo%sbar%sfred%sbob?????


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (7 preceding siblings ...)
  2011-04-23 11:14 ` daniel.kruegler at googlemail dot com
@ 2011-04-23 11:25 ` kayhayen at gmx dot de
  2011-04-23 11:36 ` redi at gcc dot gnu.org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kayhayen at gmx dot de @ 2011-04-23 11:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Kay Hayen <kayhayen at gmx dot de> 2011-04-23 11:24:54 UTC ---

On 4.6 it exists though, I pasted your code to a new file:

-----

[~]> g++-4.6 -c --std=c++0x testcase.cpp -Wall -Werror
testcase.cpp:3:17: error: unterminated raw string
testcase.cpp:3:15: error: expected primary-expression at end of input
testcase.cpp:3:15: error: expected ‘,’ or ‘;’ at end of input

[~]> cat testcase.cpp 
#include <cstdio>

char const *R = R"raw(foo%sbar%sfred%sbob?????)raw";

int main()
{
  std::printf("%s\n", R);
}

[~]> g++-4.6 -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-4.6
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.0-2'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --enable-ld=default --with-plugin-ld
--enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 20110329 (prerelease) (Debian 4.6.0-2) 

----------

Yours,
Kay


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (8 preceding siblings ...)
  2011-04-23 11:25 ` kayhayen at gmx dot de
@ 2011-04-23 11:36 ` redi at gcc dot gnu.org
  2011-04-23 11:56 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-23 11:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-23 11:36:03 UTC ---
I get no error with gcc version 4.6.0 20110419 (Red Hat 4.6.0-5)
(I can't test vanilla 4.6 until I finish reinstalling my pc)


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

* [Bug c++/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (9 preceding siblings ...)
  2011-04-23 11:36 ` redi at gcc dot gnu.org
@ 2011-04-23 11:56 ` jakub at gcc dot gnu.org
  2011-04-23 12:34 ` [Bug preprocessor/48740] " jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 11:55:24 UTC ---
I get no error with 4.6.1 20110415 (prerelease), nor current trunk, nor 4.6.0
20101005 (experimental), and all the way back to
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157804
What doesn't work though is -save-temps, apparently
it is preprocessed as
# 1 "q.C"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "q.C"
char const *R = R"raw(foo%sbar%sfred%sbob?????]raw";
with ] instead of ), so that is something we should fix.  Probably you are
using ccache and failed to mention that important thing...


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (10 preceding siblings ...)
  2011-04-23 11:56 ` jakub at gcc dot gnu.org
@ 2011-04-23 12:34 ` jakub at gcc dot gnu.org
  2011-04-23 12:34 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 12:34 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |preprocessor
   Target Milestone|---                         |4.6.1


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (11 preceding siblings ...)
  2011-04-23 12:34 ` [Bug preprocessor/48740] " jakub at gcc dot gnu.org
@ 2011-04-23 12:34 ` jakub at gcc dot gnu.org
  2011-04-23 15:10 ` kayhayen at gmx dot de
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 12:34 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 12:34:04 UTC ---
Created attachment 24080
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24080
gcc46-pr48740.patch

Untested fix.


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (12 preceding siblings ...)
  2011-04-23 12:34 ` jakub at gcc dot gnu.org
@ 2011-04-23 15:10 ` kayhayen at gmx dot de
  2011-04-23 23:32 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: kayhayen at gmx dot de @ 2011-04-23 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Kay Hayen <kayhayen at gmx dot de> 2011-04-23 15:10:32 UTC ---
Oh, it occured to me something that I could test:

[~]> g++-4.6 -c --std=c++0x testcase.cpp -Wall -Werror
testcase.cpp:3:17: error: unterminated raw string
testcase.cpp:3:15: error: expected primary-expression at end of input
testcase.cpp:3:15: error: expected ‘,’ or ‘;’ at end of input
[~]> /usr/bin/g++-4.6 -c --std=c++0x testcase.cpp -Wall -Werror
[~]> which g++-4.6
/usr/local/bin//g++-4.6
[~]> ls -l /usr/local/bin//g++-4.6
lrwxrwxrwx 1 root staff 15  7. Jan 15:12 /usr/local/bin//g++-4.6 ->
/usr/bin/ccache

So, it's a bug of ccache or the way it interacts with g++

How on earth exactly do I apologize. In no way had I thought it possible that
ccache would ever cause a problem, not was I aware or near sure if it is used
at all. If you close this bug as invalid, I will take it to ccache upstream or
Debian.

Yours,
Kay Hayen


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (13 preceding siblings ...)
  2011-04-23 15:10 ` kayhayen at gmx dot de
@ 2011-04-23 23:32 ` jakub at gcc dot gnu.org
  2011-04-23 23:34 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 23:32:12 UTC ---
Author: jakub
Date: Sat Apr 23 23:32:09 2011
New Revision: 172903

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172903
Log:
    PR preprocessor/48740
    * lex.c (lex_raw_string): When raw string ends with
    ??) followed by raw prefix and ", ensure it is preprocessed
    with ??) rather than ??].

    * c-c++-common/raw-string-11.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/raw-string-11.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/lex.c


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (14 preceding siblings ...)
  2011-04-23 23:32 ` jakub at gcc dot gnu.org
@ 2011-04-23 23:34 ` jakub at gcc dot gnu.org
  2011-04-26 10:07 ` jakub at gcc dot gnu.org
  2011-04-26 10:40 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-23 23:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-23 23:33:42 UTC ---
Author: jakub
Date: Sat Apr 23 23:33:39 2011
New Revision: 172904

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172904
Log:
    PR preprocessor/48740
    * lex.c (lex_raw_string): When raw string ends with
    ??) followed by raw prefix and ", ensure it is preprocessed
    with ??) rather than ??].

    * c-c++-common/raw-string-11.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/c-c++-common/raw-string-11.c
Modified:
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/libcpp/ChangeLog
    branches/gcc-4_6-branch/libcpp/lex.c


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (15 preceding siblings ...)
  2011-04-23 23:34 ` jakub at gcc dot gnu.org
@ 2011-04-26 10:07 ` jakub at gcc dot gnu.org
  2011-04-26 10:40 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-26 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-26 10:04:22 UTC ---
Author: jakub
Date: Tue Apr 26 10:04:18 2011
New Revision: 172956

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172956
Log:
2011-04-26  Jakub Jelinek  <jakub@redhat.com>

    Backported from mainline
    2011-04-24  Jakub Jelinek  <jakub@redhat.com>

    PR preprocessor/48740
    * lex.c (lex_raw_string): When raw string ends with
    ??) followed by raw prefix and ", ensure it is preprocessed
    with ??) rather than ??].

    * c-c++-common/raw-string-11.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/c-c++-common/raw-string-11.c
Modified:
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/libcpp/ChangeLog
    branches/gcc-4_5-branch/libcpp/lex.c


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

* [Bug preprocessor/48740] Raw C++0x strings and trigraphs mix badly
  2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
                   ` (16 preceding siblings ...)
  2011-04-26 10:07 ` jakub at gcc dot gnu.org
@ 2011-04-26 10:40 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-26 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-26 10:39:43 UTC ---
Fixed.


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

end of thread, other threads:[~2011-04-26 10:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-23  9:16 [Bug c++/48740] New: Raw C++0x strings and trigraphs mix badly kayhayen at gmx dot de
2011-04-23  9:17 ` [Bug c++/48740] " kayhayen at gmx dot de
2011-04-23 10:22 ` daniel.kruegler at googlemail dot com
2011-04-23 10:30 ` redi at gcc dot gnu.org
2011-04-23 10:55 ` jakub at gcc dot gnu.org
2011-04-23 10:59 ` daniel.kruegler at googlemail dot com
2011-04-23 11:05 ` redi at gcc dot gnu.org
2011-04-23 11:06 ` kayhayen at gmx dot de
2011-04-23 11:14 ` daniel.kruegler at googlemail dot com
2011-04-23 11:25 ` kayhayen at gmx dot de
2011-04-23 11:36 ` redi at gcc dot gnu.org
2011-04-23 11:56 ` jakub at gcc dot gnu.org
2011-04-23 12:34 ` [Bug preprocessor/48740] " jakub at gcc dot gnu.org
2011-04-23 12:34 ` jakub at gcc dot gnu.org
2011-04-23 15:10 ` kayhayen at gmx dot de
2011-04-23 23:32 ` jakub at gcc dot gnu.org
2011-04-23 23:34 ` jakub at gcc dot gnu.org
2011-04-26 10:07 ` jakub at gcc dot gnu.org
2011-04-26 10:40 ` 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).