https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265
Alan Wu changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265
--- Comment #3 from joseph at codesourcery dot com ---
On Wed, 30 Jun 2021, gcc at alanwu dot email via Gcc-bugs wrote:
> > [[attr1]] int [[attr2]] a[10] [[attr3]], b [[attr4]];
> > attr1 appertains to the variable declarations a and b, att
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265
--- Comment #2 from Alan Wu ---
> int thisdoesnt[1] [[maybe_unused]];
> Whereas that one appertains to the array type
This seems to contradict the latest document I could find about the attribute
syntax proposal. From N2335
http://www.o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265
--- Comment #1 from joseph at codesourcery dot com ---
On Tue, 29 Jun 2021, gcc at alanwu dot email via Gcc-bugs wrote:
> [[maybe_unused]] int thisworks[1];
That attribute appertains to the declared entity.
> int thisdoesnt[1]