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

            Bug ID: 91405
           Summary: [concepts] internal compiler error: in
                    synthesize_implicit_template_parm, at
                    cp/parser.c:41206
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kingoipo at gmail dot com
  Target Milestone: ---

Created attachment 46691
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46691&action=edit
Wrong usage of concepts leads to ICE

The compiler ICE's on the attached file. There are some simular bug reports
which might be the same problem or a related one, but they report a different
parser.c line.

I believe the code is incorrect and would have expected an error message like
"cannot use concept as type specifier, use template arguments instead". But it
gives an ICE.

The error happens with both g++ 7.4.0 and 9.1.0, using -fconcepts and latest
supported std version.

Reply via email to