https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96981
Bug ID: 96981
Summary: Assembler messages: Error: missing name
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tangyixuan at mail dot dlut.edu.cn
Target Milestone: ---
Hi, g++ cannot compile the following code while clang success.
$ cat s.cpp
extern char a;
char a __attribute__ (( __section__ ("")));
$ clang++ -c s.cpp
success.
$ g++ -c s.cpp
/tmp/cctRcNlE.s: Assembler messages:
/tmp/cctRcNlE.s:4: Error: missing name
$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-20200823/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-20200823/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-11-20200823/configure --prefix=/usr/local/gcc-20200823
--enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200823 (experimental) (GCC)