[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2021-12-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-06-04 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:eeb54a14c48f543857f561556ab1fc49dc21af26 commit r11-893-geeb54a14c48f543857f561556ab1fc49dc21af26 Author: Jakub Jelinek Date:

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #5 from Jakub Jelinek --- I've tried: --- gcc/cp/constexpr.c.jj 2020-05-25 10:06:59.886175941 +0200 +++ gcc/cp/constexpr.c 2020-05-26 22:02:23.661355854 +0200 @@ -6196,6 +6196,18 @@ cxx_eval_constant_expression (const cons

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #4 from Marek Polacek --- And related to bug 93955.

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #2 from Jakub Jelinek --- For - 0 it is diagnosed by: /* Technically we should check this for all subexpressions, but that runs into problems with our internal representation of pointer subtraction and the 5.19 rules are

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2020-05-25 Ever confirmed|0

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.