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

Reply via email to