On 10/26/20 7:08 AM, Nathan Sidwell wrote:
On 10/25/20 7:52 AM, Iain Sandoe wrote:
Hi
Given that GNU attributes are not part of the standard..
I wonder if the following is expected to work?
__attribute__((__deprecated__))
extern "C" __attribute__((__visibility__("default")))
void foo ()
{
}
t.C:3:8: error: expected unqualified-id before string constant
3 | extern "C" __attribute__((__visibility__("default")))
I don't see why it should be will-formed. 'extern "C"' is a linkage
well-formed
specification, which precedes (or encloses) a declaration. It is not
storage-specified with an attached string constant.
nathan
--
Nathan Sidwell