public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "schnoerr at mailzone dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-58057-4-w1FGTBANs7@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58057-4@http.gcc.gnu.org/bugzilla/>

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

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=c++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=c++0x 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
‘STRING_USERDEF’ token
>From gcc-bugs-return-427194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 02 12:45:08 2013
Return-Path: <gcc-bugs-return-427194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-58057-4-WOm8qdsvH6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58057-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58057-4@http.gcc.gnu.org/bugzilla/>
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?idX057

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|schnoerr at mailzone dot com       |3dw4rd at verizon dot net

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The error message could be better, but I don't think this is valid.


  parent reply	other threads:[~2013-08-02 12:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02  8:36 [Bug c++/58057] New: gcc lexer cannot parse extern "\x43" void blah(); schnoerr at mailzone dot com
2013-08-02  8:48 ` [Bug c++/58057] " mpolacek at gcc dot gnu.org
2013-08-02  8:50 ` paolo.carlini at oracle dot com
2013-08-02 11:30 ` [Bug c++/58057] gcc lexer cannot parse extern "\x43" void blah() with option -std=c++0x; mpolacek at gcc dot gnu.org
2013-08-02 11:31 ` paolo.carlini at oracle dot com
2013-08-02 12:32 ` schnoerr at mailzone dot com [this message]
2013-08-02 13:47 ` paolo.carlini at oracle dot com
2013-08-02 15:41 ` 3dw4rd at verizon dot net
2013-08-02 17:31 ` 3dw4rd at verizon dot net
2013-08-02 17:47 ` paolo.carlini at oracle dot com
2013-08-03  3:30 ` 3dw4rd at verizon dot net
2013-08-03 17:51 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58057-4-w1FGTBANs7@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).