[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #8 from Jonathan Wakely --- (In reply to Jason Merrill from comment #5) > I get better results if I add the static_assert to __uninitialized_copy_a, > so we hit it before queuing any further instantiations. I actually need to check

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #7 from Jason Merrill --- Created attachment 51403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51403=edit patch to stop compiling a function after static_assert

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #6 from Jason Merrill --- Created attachment 51402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51402=edit patch to silence constexpr issues with erroneous functions Here are a couple of other commits I tried to reduce error

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-08-31 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #5

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-08-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:8960a29b18b830ff0490b7f52051903fba472e45 commit r12-3236-g8960a29b18b830ff0490b7f52051903fba472e45 Author: Jason Merrill Date:

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-07-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > Why is the compiler even doing overload resolution for std::get if I is > an invalid constant expression?! It's not going to match any overload! This part

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-07-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #2 from Jonathan Wakely --- It also doesn't help that the compiler thwarts my attempt to trigger errors earlier like so: // Return index of _Tp in _Types. // Ill-formed if _Tp doesn't occur exactly once in _Types. template

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-07-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|