[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 --- Comment #5 from Marek Polacek --- Fixed on trunk so far.

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:d6d8445c85509b66a59aa6247ad7b2cfeab17725 commit r15-3674-gd6d8445c85509b66a59aa6247ad7b2cfeab17725 Author: Marek Polacek Date: Tu

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 --- Comment #3 from Marek Polacek --- I suppose we could do just: --- a/gcc/cp/constexpr.cc +++ b/gcc/cp/constexpr.cc @@ -8201,8 +8201,11 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx, tree t, TREE_TYPE (op), TREE_

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 --- Comment #2 from Marek Polacek --- Started with: commit b69ee50081ca7dbd034cc244cf4515285ca7aa72 Author: Nathaniel Shead Date: Wed Oct 11 10:57:06 2023 +1100 c++: Improve diagnostics for constexpr cast from void*

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever co

[Bug c++/116741] ICE with invalid cast from void* in constexpr

2024-09-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116741 Andrew Pinski changed: What|Removed |Added Known to fail||14.1.0 Keywords|