[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |15.0

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 --- Comment #6 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:9fe57e4879de93b6e3c7b4c226f42d5f3a48474f commit r15-3614-g9fe57e4879de93b6e3c7b4c226f42d5f3a48474f Author: Jonathan Wakely Date:

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED URL|

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > I don't remember why I did it that way rather than with static_assert in the > body of std::launder. I must hate fast compilations. Oh, because doesn't inc

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 --- Comment #3 from Jonathan Wakely --- Something like this: --- a/gcc/cp/semantics.cc +++ b/gcc/cp/semantics.cc @@ -13396,11 +13396,20 @@ finish_builtin_launder (location_t loc, tree arg, tsubst_flags_t complain) arg = decay_conversion (a

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 --- Comment #2 from Jonathan Wakely --- I don't remember why I did it that way rather than with static_assert in the body of std::launder. I must hate fast compilations.

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0