[Bug c++/83583] ICE in synthesize_implicit_template_parm, at cp/parser.c:38794

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 23 19:31:35 GMT 2020


Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The ICE no longer happens, but it's invalid code:

83583.C:3:25: error: return-type-requirement is not a type-constraint
    3 |        { T::main() } -> void;
      |                         ^~~~

and clang++:

83583.C:3:25: error: expected concept name with optional arguments
       { T::main() } -> void;   

More information about the Gcc-bugs mailing list