abi_tag questions
Stephan Bergmann
sbergman@redhat.com
Mon Nov 9 16:59:00 GMT 2015
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.
More information about the Gcc
mailing list