[Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration

2021-07-01 Thread gcc at alanwu dot email via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265 Alan Wu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration

2021-06-30 Thread joseph at codesourcery dot com via Gcc-bugs
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

[Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration

2021-06-30 Thread gcc at alanwu dot email via Gcc-bugs
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

[Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration

2021-06-30 Thread joseph at codesourcery dot com via Gcc-bugs
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]