https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69549
Bug ID: 69549 Summary: Named Address Spaces does not compile in C++ Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thiago at kde dot org Target Milestone: --- It works in C: $ cat test.c __seg_gs char * ptr; $ gcc -c test.c && echo Success Success But not in C++: $ gcc -xc++ -c test.c test.c:1:1: error: ‘__seg_gs’ does not name a type Even though it's advertised as supported: $ gcc -xc++ -dM -E /dev/null | grep SEG_GS #define __SEG_GS 1