[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #6 from Andrew Pinski --- (In reply to Carlo Wood from comment #5) > Hey Andrew :) > You probably mean https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752 > But they are different in that I think that this report is invalid... > See

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-12 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #5 from Carlo Wood --- Hey Andrew :) You probably mean https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752 But they are different in that I think that this report is invalid... See "discussion" here:

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #4 from Andrew Pinski --- I thought I saw this before ...

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #3 from Jonathan Wakely --- MSVC compiles it but Clang and EDG agree with GCC: $ clang++ c.cc -std=c++2b c.cc:12:22: error: non-type template argument is not a constant expression return SymbolRefid_>{};

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 --- Comment #2 from Carlo Wood --- I meant `constexpr Symbol x;` inside main - with the same error.

[Bug c++/114311] Possibly wrong "error: ‘this’ is not a constant expression" with consteval member function

2024-03-11 Thread carlo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114311 Carlo Wood changed: What|Removed |Added Summary|wrong "error: ‘this’ is not |Possibly wrong "error: