From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 691523858292; Tue, 5 Jul 2022 18:43:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 691523858292 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99310] [11/12/13 Regression] ICE: canonical types differ for identical types 'void (A::)(void*)' and 'void (A::)(void*)' Date: Tue, 05 Jul 2022 18:43:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 05 Jul 2022 18:43:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99310 --- Comment #5 from G. Steinmetz --- ICE is reproducible with e.g. -march=3Dnano-x2 or -march=3Dnano-x4 (gcc configured with --enable-checking=3Dyes) $ gcc-13-20220703 -c pr39060.C -march=3Dnano-x2 ... pr39060.C:19:15: internal compiler error: canonical types differ for identi= cal types 'void (A::)(void*)' and 'void (A::)(void*)' 19 | A::A (void* i=3D) {} // { dg-error "primary-expression|argumen= t" } | ^ 0xa4d28c comptypes(tree_node*, tree_node*, int) ../../gcc/cp/typeck.cc:1560 0x7fa24c duplicate_decls(tree_node*, tree_node*, bool, bool) ../../gcc/cp/decl.cc:2470 0x6bc66f grokfndecl ../../gcc/cp/decl.cc:10580 ...=