public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-107003-4-zfTRp8WzSR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107003-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107003 Martin Liška <marxin at gcc dot gnu.org> 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ška <marxin at gcc dot gnu.org> --- Reduced test-case: $ cat pr107003.ii template < typename _Default, template < typename > class > using __detected_or_t = _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 = _Template< _Up >; }; template < typename _Tp > using __pointer = typename _Tp::pointer; template < typename _Tp > struct __rebind : __replace_first_arg< _Tp, int > {}; template < typename _Alloc, typename > using __alloc_rebind = typename __rebind< _Alloc >::type; template < typename _Alloc > struct allocator_traits { using pointer = __detected_or_t< typename _Alloc::value_type *, __pointer >; template < typename _Tp > using rebind_alloc = __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___alignment); } virtual void do_deallocate(void *, unsigned long, unsigned long); }; template < class > struct polymorphic_allocator { using value_type = 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 = _List_base< polymorphic_allocator< _Tp > >; } list< int > a; } started failing since r6-1066-g233ce289250944dd.
prev parent reply other threads:[~2022-09-22 19:21 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-21 17:38 [Bug c++/107003] New: ICE in mangle_decl, at cp/mangle.cc:4112 gscfq@t-online.de 2022-09-21 17:43 ` [Bug c++/107003] " mpolacek at gcc dot gnu.org 2022-09-22 19:20 ` marxin at gcc dot gnu.org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107003-4-zfTRp8WzSR@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).