[Bug c++/116844] Disambiguation of T x = delete("text")

2024-09-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116844 --- Comment #3 from Jakub Jelinek --- I think this isn't rejects-valid, http://eel.is/c++draft/dcl.fct#17 says that typedef introduced functions should be only declared, not defined, and {} or = delete; or = delete ("reason"); are definitions (a

[Bug c++/116844] Disambiguation of T x = delete("text")

2024-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116844 --- Comment #2 from Andrew Pinski --- ``` using T = void (); T a = delete ("hello"); T b = delete; ``` Should be valid, correct? I was even more super confused because clang parses `= delete` here specially and then errors out: ``` :3:7: erro

[Bug c++/116844] Disambiguation of T x = delete("text")

2024-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116844 Andrew Pinski changed: What|Removed |Added Alias||cwg2144 Ever confirmed|0