This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: abi_tag questions


On 11/04/2015 12:48 PM, Jonathan Wakely wrote:
On 4 November 2015 at 14:37, Stephan Bergmann <sbergman@redhat.com> wrote:
I have two questions regarding the abi_tag attribute (as documented at
<https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html>):
[...]
2  "The argument can be a list of strings of arbitrary length."

Does that mean the list can be empty?

void f() __attribute__((__abi_tag__()));

fails with "error: wrong number of arguments specified for â__abi_tag__â
attribute" while

inline namespace n __attribute__((__abi_tag__())) {}

is accepted by recent trunk GCC (as well as older versions).

That seems like a bug.

Filed <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68257> "Reject empty abi_tag attribute on inline namespace" now.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]