From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B94333858422; Thu, 22 Sep 2022 19:21:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B94333858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663874479; bh=0zdpzIAsVMow7mJj8MUPASoO1y8tbxasCY8Bbda8u8o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xWCiCIuhV56FsWGJwx94PnrU6YgiLHPxQGdajER9Iun9ou/r1VZCDElEUsGJ8vNXb lgfJzfx3lieJSjnL2fuvq5lTIh+bhYzpYN6r8VotDkumBJoAu5Hhb5Euigs++k5xZY J1wMmetOmJJMhsfNxVDCTy3F5stD9glI++9HC3Ng= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107003] ICE in mangle_decl, at cp/mangle.cc:4112 since r6-1066-g233ce289250944dd Date: Thu, 22 Sep 2022 19:20:46 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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: short_desc cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107003 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE in mangle_decl, at |ICE in mangle_decl, at |cp/mangle.cc:4112 |cp/mangle.cc:4112 since | |r6-1066-g233ce289250944dd CC| |hubicka at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #2 from Martin Li=C5=A1ka --- Reduced test-case: $ cat pr107003.ii template < typename _Default, template < typename > class > using __detected_or_t =3D _Default; template < typename, typename > struct __replace_first_arg; template < template < typename... > class _Template, typename _Up, typename _Tp, typename... _Types > struct __replace_first_arg< _Template< _Tp, _Types... >, _Up > { using type =3D _Template< _Up >; }; template < typename _Tp > using __pointer =3D typename _Tp::pointer; template < typename _Tp > struct __rebind : __replace_first_arg< _Tp, int >= {}; template < typename _Alloc, typename > using __alloc_rebind =3D typename __rebind< _Alloc >::type; template < typename _Alloc > struct allocator_traits { using pointer =3D __detected_or_t< typename _Alloc::value_type *, __point= er >; template < typename _Tp > using rebind_alloc =3D __alloc_rebind< _Alloc, = _Tp >; static void deallocate(_Alloc __a, pointer __p, int __n) { __a.deallocate(__p, __n); } }; template < typename _Alloc > struct __alloc_traits : allocator_traits< _Alloc > { template < typename > struct rebind { typedef typename allocator_traits< _Alloc >::template rebind_alloc< int= > other; }; }; template < typename _Alloc > struct _List_base { typedef __alloc_traits< _Alloc > _Tp_alloc_traits; typedef typename _Tp_alloc_traits::template rebind< int >::other _Node_alloc_type; typedef __alloc_traits< _Node_alloc_type > _Node_alloc_traits; struct : _Node_alloc_type { } _M_impl; typename _Node_alloc_traits::pointer _M_put_node___p; _List_base() { _Node_alloc_traits::deallocate(_M_impl, _M_put_node___p, 1= ); } }; namespace experimental { inline namespace fundamentals_v2 { void *deallocate___p; long deallocate___bytes; long deallocate___alignment; struct memory_resource { void deallocate() { do_deallocate(deallocate___p, deallocate___bytes, deallocate___alignmen= t); } virtual void do_deallocate(void *, unsigned long, unsigned long); }; template < class > struct polymorphic_allocator { using value_type =3D int; void deallocate(int *, long) { _M_resource.deallocate(); } memory_resource _M_resource; }; inline void null_memory_resource() { struct final : memory_resource { void do_deallocate(void *, unsigned long, unsigned long) {} }; } template < typename _Tp > using list =3D _List_base< polymorphic_allocator< _Tp > >; } list< int > a; } started failing since r6-1066-g233ce289250944dd.=