[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2022-06-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 Jason Merrill changed: What|Removed |Added Target Milestone|--- |13.0 Resolution|---

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2022-06-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #7 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:124a9e08b7a83795bd4d09001955f0eef68ecd00 commit r13-1219-g124a9e08b7a83795bd4d09001955f0eef68ecd00 Author: Jason Merrill Date:

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2022-06-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #6 from Jason Merrill --- (In reply to Daniel Krügler from comment #3) > The example is ill-formed because the condition of 'if constexpr' is more > restricted than that of normal 'if': It expects "a contextually converted > constant

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2022-06-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-10-01 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 Marco Trevisan changed: What|Removed |Added CC||mail at 3v1n0 dot net --- Comment #5

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-07-10 Thread lts-rudolph at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 Klaus Rudolph changed: What|Removed |Added CC||lts-rudolph at gmx dot de --- Comment

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-04-14 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #3 from Daniel Krügler --- (In reply to Melissa from comment #0) > Clang errors on this case, so it's possible that my code is invalid: Is it > legal to compare a function pointer against null in a constant-expression? The example

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-04-10 Thread myriachan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #2 from Melissa --- Templates that take an optional function pointer as a template parameter. It lets you have templates that change behavior if a null function pointer is passed.

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-04-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment