[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2022-01-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2022-01-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #12 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:2793af17db239429ea3a2e26834e74daa6cff2c0 commit r12-6285-g2793af17db239429ea3a2e26834e74daa6cff2c0 Author: Patrick Palka Date:

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2021-09-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Andrew Pinski changed: What|Removed |Added Severity|normal |major

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2021-09-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #11 from Andrew Pinski --- *** Bug 102267 has been marked as a duplicate of this bug. ***

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2021-09-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Andrew Pinski changed: What|Removed |Added Blocks||55004 --- Comment #10 from Andrew

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2021-09-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Andrew Pinski changed: What|Removed |Added CC||johelegp at gmail dot com --- Comment

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2021-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Andrew Pinski changed: What|Removed |Added CC||ldalessandro at gmail dot com ---

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-12-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #7 from Jonathan Wakely --- There's no need to determine the addresses, only the truth of the inequality. The standard says distinct functions have distinct addresses. Yes, linker trickery can break that, but it's reasonable to rely

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-12-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-12-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-02-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #3 from Patrick Palka --- (In reply to Andrew Pinski from comment #2) > I don't think "(int)( != )" is a valid constant integer expression > in either C or C++. (definitely not in C). This is why GCC rejects it. Oops, good point.

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-02-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #2 from Andrew Pinski --- I don't think "(int)( != )" is a valid constant integer expression in either C or C++. (definitely not in C). This is why GCC rejects it.

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #4

[Bug c++/69681] C/C++ FEs do not consider comparisons of distinct function pointers to be constant expressions

2016-02-04 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69681 --- Comment #1 from Patrick Palka --- (Sorry about the typos in the original comment. To fix them, s/since both foo and bar/since both foo and bar are/ s/when comparing and pointers/when comparing pointers/ s/the subsequent declarations/then