Hi Martin, On Sat, Dec 14, 2024 at 08:20:09AM +0100, Martin Uecker wrote: > > The workaround is to add the size argument to the access > attribute. > > [[gnu::access(write_only, 2, 1)]] > int f(int n, char * a[n]); > int f(int n, char * a[n]); Hmmm, thanks! > > > Martin > > > Am Samstag, dem 14.12.2024 um 08:14 +0100 schrieb Martin Uecker: > > Yes, there are two bugs. The first with > > > > [[gnu::access(write_only, 2)]] > > int f(int n, char * a[n]); > > > > > > And the second with -Wvla-parameter -Wno-attributes > > > > [[gnu::access(write_only, 2)]] > > int f(int n, char * a[n]); > > int f(int n, char * a[n]); > > > > Can you file two bugs? (if those don't exist yet) Heh! Double-hit! :D Yes, I will. Have a lovely day! Alex -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature