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")))
===
Note that the C (and C++) front ends are happy to accept:
__attribute__((__deprecated__))
extern __attribute__((__visibility__("default")))
void foo ()
{
}
happy to file a PR/attempt a fix if we expect this to work
(clang accepts it, FWIW)
thanks
Iain