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 target/100041] ICE in curr_insn_transform, at lra-constraints.c:4022 Date: Mon, 12 Apr 2021 11:08:14 +0000 [thread overview] Message-ID: <bug-100041-4-iGU2aQHqXx@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100041-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100041 --- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> --- Reduced test-case: $ cat itanium.ii template <typename _Tp> _Tp forward(); void snprintf(...); struct StringView { StringView(char *); }; struct Trans_NS_itanium_demangle_Node { enum Kind {}; Trans_NS_itanium_demangle_Node(Kind); }; struct FloatLiteralImpl : Trans_NS_itanium_demangle_Node { StringView Contents; Kind KindForClass; FloatLiteralImpl(StringView Contents_) : Trans_NS_itanium_demangle_Node(KindForClass), Contents(Contents_) { union { long double value; }; snprintf(value); } }; template <typename> struct ManglingParser; class CanonicalizerAllocator; template <typename, typename Alloc> struct AbstractManglingParser { char First; Alloc ASTAllocator; ManglingParser<CanonicalizerAllocator> getDerived(); template <class... Args> void make(Args...) { ASTAllocator.template makeNode<int>(forward<Args>()...); } template <class> Trans_NS_itanium_demangle_Node *parseFloatingLiteral(); Trans_NS_itanium_demangle_Node *parse(); }; template <typename Alloc, typename Derived> template <class> Trans_NS_itanium_demangle_Node * AbstractManglingParser<Alloc, Derived>::parseFloatingLiteral() { StringView Data(&First); make(Data); return 0; } template <typename Derived, typename Alloc> Trans_NS_itanium_demangle_Node * AbstractManglingParser<Derived, Alloc>::parse() { getDerived().template parseFloatingLiteral<double>(); return 0; } template <typename Alloc> struct ManglingParser : AbstractManglingParser<int, Alloc> {}; struct CanonicalizerAllocator { template <typename Args> void makeNodeSimple(Args); struct MakeNodeImpl { CanonicalizerAllocator &Self; template <typename... Args> void make(Args...) { Self.makeNodeSimple<FloatLiteralImpl>(forward<Args>()...); } }; template <typename, typename... Args> void makeNode(Args...) { MakeNodeImpl{*this}.make(forward<Args>()...); } }; using CanonicalizingDemangler = ManglingParser<int>; CanonicalizingDemangler parseMaybeMangledName_Demangler; void parseMaybeMangledName() { parseMaybeMangledName_Demangler.parse(); }
next prev parent reply other threads:[~2021-04-12 11:08 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-12 3:39 [Bug c++/100041] New: " mss at tutanota dot de 2021-04-12 6:17 ` [Bug target/100041] " pinskia at gcc dot gnu.org 2021-04-12 7:30 ` mss at tutanota dot de 2021-04-12 7:32 ` mss at tutanota dot de 2021-04-12 7:34 ` marxin at gcc dot gnu.org 2021-04-12 7:39 ` mss at tutanota dot de 2021-04-12 7:40 ` marxin at gcc dot gnu.org 2021-04-12 8:52 ` mss at tutanota dot de 2021-04-12 8:54 ` mss at tutanota dot de 2021-04-12 8:55 ` mss at tutanota dot de 2021-04-12 9:08 ` mss at tutanota dot de 2021-04-12 9:09 ` rguenth at gcc dot gnu.org 2021-04-12 9:11 ` rguenth at gcc dot gnu.org 2021-04-12 9:31 ` ubizjak at gmail dot com 2021-04-12 11:08 ` marxin at gcc dot gnu.org [this message] 2021-04-12 11:21 ` ubizjak at gmail dot com 2021-04-12 11:57 ` ubizjak at gmail dot com 2021-04-12 11:59 ` ubizjak at gmail dot com 2021-04-12 12:04 ` jakub at gcc dot gnu.org 2021-04-12 12:11 ` ubizjak at gmail dot com 2021-04-12 12:14 ` jakub at gcc dot gnu.org 2021-04-12 12:22 ` ubizjak at gmail dot com 2021-04-12 12:26 ` mss at tutanota dot de 2021-04-23 16:46 ` cvs-commit at gcc dot gnu.org 2021-04-24 8:03 ` ubizjak at gmail dot com
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-100041-4-iGU2aQHqXx@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).