This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69549] New: Named Address Spaces does not compile in C++
- From: "thiago at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jan 2016 06:27:17 +0000
- Subject: [Bug c++/69549] New: Named Address Spaces does not compile in C++
- Auto-submitted: auto-generated
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