Re: Question about whether a code fragment is expected to parse.

2020-10-26 Thread Iain Sandoe via Gcc
Nathan Sidwell wrote: On 10/26/20 7:08 AM, Nathan Sidwell wrote: On 10/25/20 7:52 AM, Iain Sandoe wrote: 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__("defaul

Re: Question about whether a code fragment is expected to parse.

2020-10-26 Thread Nathan Sidwell
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 () { }

Re: Question about whether a code fragment is expected to parse.

2020-10-26 Thread Nathan Sidwell
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 bef

Question about whether a code fragment is expected to parse.

2020-10-25 Thread Iain Sandoe via Gcc
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" __