[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2021-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

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

[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2021-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693 --- Comment #3 from Andrew Pinski --- The inline part of the template variable does not make a difference. Reduced testcase: template char hh= 0; static_assert(<0> != <1>, "should not be equal");

[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2020-01-29 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2019-09-06 Thread jorg.brown at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693 --- Comment #1 from Jorg Brown --- Related missed-optimization bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43565