From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21680 invoked by alias); 23 Nov 2011 09:43:37 -0000 Received: (qmail 21671 invoked by uid 22791); 23 Nov 2011 09:43:36 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8 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; Wed, 23 Nov 2011 09:43:20 +0000 From: "mutz at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51282] New: [regression] error:=?UTF-8?Q?=20unable=20to=20find=20string=20literal=20operator=20=E2=80=98operator?="" on string literal concatenation Date: Wed, 23 Nov 2011 10:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: mutz at kde dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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 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-11/txt/msg02297.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51282 Bug #: 51282 Summary: [regression] error: unable to find string literal operator =E2=80=98operator"" on string literal concaten= ation Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: mutz@kde.org Current trunk (well, a few days old): error: unable to find string literal operator =E2=80=98operator"" DIR_SEPAR= ATOR_STRING=E2=80=99 In this line: "abc"DIR_SEPARATOR_STRING"hallo.xxx" where #define DIR_SEPARATOR_STRING "/" This can be fixed by adding whitespace around DIR_SEPARATOR_STRING, but Qt's SIGNAL/SLOT macros cannot be fixed that way (there, the concatenation of the string literals appears in the macro definition, and adding extra whitespace doesn't help there).