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 ipa/98000] g++-10 internal compiler error: verify_cgraph_node failed Date: Thu, 26 Nov 2020 10:17:59 +0000 [thread overview] Message-ID: <bug-98000-4-Ab0rmprrMR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-98000-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000 --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Reduced test-case: $ cat pr98000.C struct { template <typename T> T *operator()(T); } hb_addressof; template <typename, typename, typename... Ts> static int _hb_cmp_method(Ts...) { return 0; } template <typename V, typename K> inline bool hb_bsearch_impl(K key, V, int compar(void *, void *)) { V p; int __trans_tmp_2 = *hb_addressof(key) = compar(&__trans_tmp_2, p); return false; } struct hb_array_t { int arrayZ; }; struct hb_sorted_array_t : hb_array_t { void bsearch() { hb_bsearch_impl(bsearch_impl_x, &arrayZ, _hb_cmp_method<int, int>); } int bsearch_impl_x; }; template <typename Returned> struct hb_lazy_loader_t { Returned *operator->(); }; namespace OT { struct COLR; } struct hb_ot_face_t { hb_lazy_loader_t<OT::COLR> COLR; }; struct { hb_ot_face_t table; } hb_ot_color_glyph_get_layers_face; namespace OT { struct IntType { typedef int wide_type; operator wide_type(); }; struct UnsizedArrayOf; struct OffsetTo { template <typename Base> friend UnsizedArrayOf operator+(Base, OffsetTo); }; template <typename, bool> using LOffsetTo = OffsetTo; template <typename Type> using LNNOffsetTo = LOffsetTo<Type, false>; struct UnsizedArrayOf { void as_array(int); }; struct SortedUnsizedArrayOf { hb_sorted_array_t __trans_tmp_4; void bsearch() { __trans_tmp_4.bsearch(); } }; struct COLR { SortedUnsizedArrayOf __trans_tmp_3; int get_glyph_layers() { __trans_tmp_3.bsearch(); int __trans_tmp_3 = numLayers; (this + layersZ).as_array(__trans_tmp_3); } LNNOffsetTo<int> layersZ; IntType numLayers; }; } // namespace OT void hb_ot_color_glyph_get_layers() { hb_ot_color_glyph_get_layers_face.table.COLR->get_glyph_layers(); } fails with: g++ pr98000.C -c -fchecking -Og since r10-7306-g72b3bc895f023bf4
next prev parent reply other threads:[~2020-11-26 10:17 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-26 6:08 [Bug ipa/98000] New: " ishikawa at yk dot rim.or.jp 2020-11-26 6:11 ` [Bug ipa/98000] " ishikawa at yk dot rim.or.jp 2020-11-26 6:14 ` ishikawa at yk dot rim.or.jp 2020-11-26 9:36 ` marxin at gcc dot gnu.org 2020-11-26 10:17 ` marxin at gcc dot gnu.org [this message] 2020-11-26 10:18 ` [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4 marxin at gcc dot gnu.org 2020-11-26 13:37 ` ishikawa at yk dot rim.or.jp 2020-11-26 14:22 ` marxin at gcc dot gnu.org 2021-01-14 9:48 ` rguenth at gcc dot gnu.org 2021-04-08 12:02 ` rguenth at gcc dot gnu.org 2022-06-28 10:42 ` [Bug ipa/98000] [10/11/12/13 " jakub at gcc dot gnu.org 2023-07-07 10:38 ` [Bug ipa/98000] [11/12/13/14 " rguenth at gcc dot gnu.org
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-98000-4-Ab0rmprrMR@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).