On 11/04/2015 12:48 PM, Jonathan Wakely wrote:
On 4 November 2015 at 14:37, Stephan Bergmann <sberg...@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.