[Bug c++/120390] Request to improve error with private destructor

2025-05-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120390 --- Comment #4 from Jonathan Wakely --- There's also the source context which should be pretty clear what the assertion was testing when it failed: 188 | static_assert(is_destructible<_Value_type>::value, But I think the best solution

[Bug c++/120390] Request to improve error with private destructor

2025-05-21 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120390 --- Comment #3 from nightstrike --- I know it isn't a bug, it's bad code that the compiler is correctly erroring out on. My point is that the original error message was spot on perfect in highlighting the issue being that the destructor was pri

[Bug c++/120390] Request to improve error with private destructor

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

[Bug c++/120390] Request to improve error with private destructor

2025-05-21 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120390 --- Comment #1 from nightstrike --- (In reply to nightstrike from comment #0) > either 1) I was missing private:, "missing public:", obviously