From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE7E7388552D; Wed, 26 Oct 2022 20:45:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE7E7388552D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666817130; bh=Ee36rx5P8duPO18bX+BqvSsxa6tXvXVG0Ka3e1O6Ypk=; h=From:To:Subject:Date:From; b=Szxich3eQ8xSOXIZhSY2Da2GeCnfsXcGt4BL+tat0KiP6SlvDMwoDOuRTp0TvOzSu BG5qbmgqRjLqwh5TB4H9r0Ed/Qbj/8aWJD7v3QzkrmVx4f7lDE8HesW9LGFdKMOYKq DwRophcritNYJH8cruHJ9OEvFNfkkxIhPDj9XdrY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107428] New: trying to define a partial specialized concept does not give a good error message Date: Wed, 26 Oct 2022 20:45:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107428 Bug ID: 107428 Summary: trying to define a partial specialized concept does not give a good error message Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Take: ``` template concept same =3D false; template concept same =3D true; ``` GCC produces: ``` :6:13: error: expected '=3D' before '<' token 6 | concept same =3D true; | ^ ``` While clang produces: ``` :6:9: error: name defined in concept definition must be an identifi= er concept same =3D true; ^ ``` While clang is definitely better than GCC. We could do even better at sugguesting you can't do a partial specialization of a concept.=