[Bug c++/105050] error: expression '' is not a constant expression

2022-12-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/105050] error: expression '' is not a constant expression

2022-12-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 --- Comment #7 from Andrew Pinski --- I think clang still gives a better error message here though: :43:15: error: static assertion expression is not an integral constant expression static_assert(test_swap()); ^~~ :18:17:

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 --- Comment #6 from Jonathan Wakely --- Thanks!

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 --- Comment #5 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:ff465bd8a0f0f96a00d3067018442917b194b7af commit r12-7831-gff465bd8a0f0f96a00d3067018442917b194b7af Author: Patrick Palka Date:

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-25 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 --- Comment #4 from Jonathan Wakely --- N.B. GCC 9 showed this instead of the "" part: x.ii:15:7: error: expression '(((expected*)this)->expected::has_value() ? ((& __x)->expected::has_value() ? ({...}) : ({...})) : ((&

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 --- Comment #3 from Jonathan Wakely --- I think just "note: neither branch of ‘if’ is a valid ‘constexpr’ body" without the "because ..." and the following notes would be good enough. It tells the user to look at the 'if' body, not the

[Bug c++/105050] error: expression '' is not a constant expression

2022-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105050 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-03-25 Ever confirmed|0