[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 --- Comment #7 from Jonathan Wakely --- (In reply to fsmoke from comment #6) > I am sorry..I am new in gcc bugzilla. But.. i have gcc 9.3 and this issue > still takes a place. Because it's fixed in GCC 10.1
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 fsmoke changed: What|Removed |Added CC||fsmoke at mail dot ru --- Comment #6 from fsmoke --- I am sorry..I am new in gcc bugzilla. But.. i have gcc 9.3 and this issue still takes a place.
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Marek Polacek --- Fixed.
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Fri Aug 23 00:06:25 2019 New Revision: 274839 URL: https://gcc.gnu.org/viewcvs?rev=274839=gcc=rev Log: PR c++/91304 - prefix attributes ignored in condition. * parser.c (cp_parser_condition): Handle prefix attributes. * g++.dg/cpp0x/gen-attrs-70.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-70.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #3 from Marek Polacek --- https://gcc.gnu.org/ml/gcc-patches/2019-08/msg01495.html
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC||mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- All attributes are ignored. I have a fix.
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Martin Sebor changed: What|Removed |Added Known to fail||10.0, 9.1.0 --- Comment #1 from Martin Sebor --- Confirmed. These forms work: int f(); void g() { if (int i [[maybe_unused]] = f()) { } } void h() { if (auto i [[maybe_unused]] = f()) { } }
[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2019-07-31 Ever confirmed|0 |1