From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BEF5B3857C5A; Sat, 22 Aug 2020 12:47:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEF5B3857C5A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598100420; bh=zlvYKYEyZcUWzE/0p0qts83y1zEFtQ0S88Ntcy176tI=; h=From:To:Subject:Date:From; b=EYtVSS/rqeWws4VOYyzHhyoONUBmY5r7RQeGf5LK5j5M+pI+GF/hS5ndlvjWgF0Uc HrBPd1/490YIXl2JRecVKY2doOPaZ64j0kQ2kLqcCQdSJibNVzHfJ4sXrsTetBldif QIGUEJwwO6Pr8EbvOSj52L/1Gno7Yf0kKCOPFziI= From: "src at andyf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96745] New: [concepts] internal compiler error: in type_memfn_rqual, at cp/typeck.c:10389 Date: Sat, 22 Aug 2020 12:47:00 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: src at andyf dot de 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: Sat, 22 Aug 2020 12:47:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96745 Bug ID: 96745 Summary: [concepts] internal compiler error: in type_memfn_rqual, at cp/typeck.c:10389 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, the following code gives an internal compiler error. template struct Test { ~Test() requires true {} ~Test() requires true && true {} }; Test t; Error: : In instantiation of 'struct Test': :7:11: required from here :2:8: internal compiler error: in type_memfn_rqual, at cp/typeck.c:10389 2 | struct Test { | ^~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler returned: 1 The code is ill-formed, the compiler cannot identify which of the two destructors is the most constrained. However, I think a more helpful error message would assist me in a large code-base much more. Live: https://godbolt.org/z/6dP8PG Andreas=