From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25421 invoked by alias); 23 Apr 2011 11:06:21 -0000 Received: (qmail 25411 invoked by uid 22791); 23 Apr 2011 11:06:21 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 Apr 2011 11:06:07 +0000 From: "kayhayen at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/48740] Raw C++0x strings and trigraphs mix badly X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kayhayen at gmx dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Sat, 23 Apr 2011 11:06:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg02430.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48740 --- Comment #7 from Kay Hayen 2011-04-23 11:05:52 = UTC --- Created attachment 24079 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D24079 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=3Dc++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 =E2=80=98,=E2=80=99 or =E2=80=98;=E2=80= =99 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 outpu= t.