From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9277 invoked by alias); 2 Aug 2013 12:32:14 -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 Received: (qmail 9192 invoked by uid 48); 2 Aug 2013 12:32:11 -0000 From: "schnoerr at mailzone dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58057] gcc lexer cannot parse extern "\x43" void blah() with option -std=c++0x; Date: Fri, 02 Aug 2013 12:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schnoerr at mailzone dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00117.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58057 schnoerr at mailzone dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|WORKSFORME |--- --- Comment #6 from schnoerr at mailzone dot com --- I'm sorry again, the cause of the error seemed to be so obvious. The removed spaces are the reason. Here is a small program I could isolate the problem: ------------------------------ //command: g++ -std=3Dc++0x test.cc -o test //version: g++ (GCC) 4.7.3 extern "C" void * blah_1( void * ); //ok extern "\x43" void*blah_2(void*); //ok extern"\x43"void*blah_3(void*); //<-- error only here with -std=3Dc++0= x and g++4.7.3 // no error with g++4.6.3 int main() { } error message: test.cc:7:7: error: expected unqualified-id before =C3=A2=E2=82=AC=CB=9CSTRING_USERDEF=C3=A2=E2=82=AC=E2=84=A2 token >>From gcc-bugs-return-427194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 02 12:45:08 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27251 invoked by alias); 2 Aug 2013 12:45:08 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27183 invoked by uid 48); 2 Aug 2013 12:45:06 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58057] gcc lexer cannot parse extern "\x43" void blah() with option -std=c++0x; Date: Fri, 02 Aug 2013 12:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00118.txt.bz2 Content-length: 465 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58057 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- CC|schnoerr at mailzone dot com |3dw4rd at verizon dot net --- Comment #7 from Paolo Carlini --- The error message could be better, but I don't think this is valid.