[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2022-01-07 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com ---

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2021-12-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 --- Comment #6 from Andrew Pinski --- http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1291 [Accepted at the November, 2020 meeting as part of paper P1787R6 and moved to DR at the February, 2021 meeting.] So there is a defect

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2021-12-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 Andrew Pinski changed: What|Removed |Added Keywords|accepts-invalid | --- Comment #5 from Andrew Pinski ---

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2021-12-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2021-12-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 --- Comment #3 from Andrew Pinski --- ICC also rejects this for the same reason as GCC while both MSVC and clang accept it. Maybe there is a defect report about this.

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2016-02-05 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 --- Comment #1 from Andrew Pinski --- I think this should be diagnose differently in that A changes meanings inside the class. That is if we used: operator A () const noexcept { return {}; } We get the following error message: t9.cc:8:12:

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2016-02-05 Thread eric at efcs dot ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 --- Comment #2 from Eric Fiselier --- @Andrew The in-class diagnostics are pretty good. My concern is that users outside the class cannot name the conversion operator. I don't think they care that "A" changes meaning *within* B. I don't think