From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1AA503851C01; Tue, 28 Apr 2020 19:16:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AA503851C01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588101391; bh=9r0xlYN0ZFsIjqAVgLhqsnYaYOy1HA6M/fneklAw+Yc=; h=From:To:Subject:Date:From; b=IUCB98swJPRpwPkpjloMHQPYBUtME6VOBx+L+jXekDycJzOU3LE8IXN7tCsDX0KoD c48GKfKqzqZjNZCUUpxaF33fTrFSa4jsTkB5GahqLMsNs9mmRzw+qETNwk69oXKAGk k8UAxRq/UUaz5AZgDeAmOMCmV3HXxmNPvP5W9wcg= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94830] New: Some concepts diagnostic messages are nondeterministic Date: Tue, 28 Apr 2020 19:16: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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 19:16:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94830 Bug ID: 94830 Summary: Some concepts diagnostic messages are nondeterministic Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template concept c =3D __is_same(T, R); template requires c void foo() { } void bar() { foo(); } $ g++ -std=3Dc++2a testcase.C testcase.C: In function =E2=80=98void bar()=E2=80=99: testcase.C:10:18: error: use of function =E2=80=98void foo() [with T =3D in= t; R =3D char]=E2=80=99 with unsatisfied constraints 10 | foo(); | ^ testcase.C:6:6: note: declared here 6 | void foo() { } | ^~~ testcase.C:6:6: note: constraints not satisfied testcase.C: In instantiation of =E2=80=98void foo() [with T =3D int; R =3D = char]=E2=80=99: testcase.C:10:18: required from here testcase.C:2:11: required for the satisfaction of =E2=80=98c=E2=80= =99 [with T =3D int; R =3D char] testcase.C:2:15: note: =E2=80=98int=E2=80=99 is not the same as =E2=80=98= char=E2=80=99 2 | concept c =3D __is_same(T, R); | ^~~~~~~~~~~~~~~ The diagnostic pointing to line 2:11 will on some invocations say "[with T = =3D int; R =3D char]" and on other invocations say "[with R =3D char; T =3D int= ]"=