public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/85775] False positive with -Wparentheses
[not found] <bug-85775-4@http.gcc.gnu.org/bugzilla/>
@ 2022-01-07 6:00 ` pinskia at gcc dot gnu.org
2023-03-24 21:04 ` markus-t314 at gmx dot de
2023-03-24 21:09 ` markus-t314 at gmx dot de
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-07 6:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85775
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-01-07
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/85775] False positive with -Wparentheses
[not found] <bug-85775-4@http.gcc.gnu.org/bugzilla/>
2022-01-07 6:00 ` [Bug c++/85775] False positive with -Wparentheses pinskia at gcc dot gnu.org
@ 2023-03-24 21:04 ` markus-t314 at gmx dot de
2023-03-24 21:09 ` markus-t314 at gmx dot de
2 siblings, 0 replies; 3+ messages in thread
From: markus-t314 at gmx dot de @ 2023-03-24 21:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85775
markus <markus-t314 at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus-t314 at gmx dot de
--- Comment #2 from markus <markus-t314 at gmx dot de> ---
Maybe a simpler example:
struct Foo {
int num;
};
struct S {
static Foo f;
};
// error: 'S' in 'struct Foo' does not name a type
//Foo ::S::f = Foo{23};
// warning: unnecessary parentheses in declaration of 'f' [-Wparentheses]
Foo (::S::f) = Foo{23};
Parantheses are necessary if global scope resolution is wanted/needed,
otherwise they would refer to the class Foo.
https://godbolt.org/z/7d39rbv7o
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/85775] False positive with -Wparentheses
[not found] <bug-85775-4@http.gcc.gnu.org/bugzilla/>
2022-01-07 6:00 ` [Bug c++/85775] False positive with -Wparentheses pinskia at gcc dot gnu.org
2023-03-24 21:04 ` markus-t314 at gmx dot de
@ 2023-03-24 21:09 ` markus-t314 at gmx dot de
2 siblings, 0 replies; 3+ messages in thread
From: markus-t314 at gmx dot de @ 2023-03-24 21:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85775
--- Comment #3 from markus <markus-t314 at gmx dot de> ---
Worked until 7.5, fails since 8.1 and still fails in 12.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-24 21:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-85775-4@http.gcc.gnu.org/bugzilla/>
2022-01-07 6:00 ` [Bug c++/85775] False positive with -Wparentheses pinskia at gcc dot gnu.org
2023-03-24 21:04 ` markus-t314 at gmx dot de
2023-03-24 21:09 ` markus-t314 at gmx dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).