[Bug c++/102734] [DR2335] Autodeduced method return type is available before the class is complete

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 16 05:51:02 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102734

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-10-16
             Status|UNCONFIRMED                 |SUSPENDED
     Ever confirmed|0                           |1
            Summary|Autodeduced method return   |[DR2335] Autodeduced method
                   |type is available before    |return type is available
                   |the class is complete       |before the class is
                   |                            |complete

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2335

Still open so suspend.

Though it does look like clang/MSVC behavior might become standard:
> Notes from the June, 2018 meeting:
> The consensus of CWG was to treat templates and classes the same by
> "instantiating" delayed-parse regions when they are needed instead of at the
> end of the class.


More information about the Gcc-bugs mailing list