public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95311] [11 Regression] ICE in cp_ubsan_maybe_instrument_member_call at gcc/cp/cp-ubsan.c:136 since r11-578-g72af65b91cc2a2eb Date: Thu, 28 May 2020 12:15:52 +0000 [thread overview] Message-ID: <bug-95311-4-7BaLw52wV6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-95311-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95311 David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- This C++ code seems to do something similar: class a { virtual long b() const; }; class c : a { public: long b() const; }; class d : c { long e(); }; long d::e() { b(); } $ /home/dcb/gcc/results/bin/g++ -c -w -fsanitize=undefined -std=c++11 bug616.cc bug616.cc: In member function ‘long int d::e()’: bug616.cc:11:20: internal compiler error: tree check: expected class ‘expression ’, have ‘declaration’ (parm_decl) in tree_operand_check, at tree.h:3794 11 | long d::e() { b(); } | ^ 0x124fe0a tree_class_check_failed(tree_node const*, tree_code_class, char const* , int, char const*) ../../trunk.git/gcc/tree.c:9755 0x6b915d cp_ubsan_maybe_instrument_member_call(tree_node*) ../../trunk.git/gcc/cp/cp-ubsan.c:0
next prev parent reply other threads:[~2020-05-28 12:15 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-25 8:56 [Bug c++/95311] New: " marxin at gcc dot gnu.org 2020-05-25 8:56 ` [Bug c++/95311] " marxin at gcc dot gnu.org 2020-05-25 11:17 ` rguenth at gcc dot gnu.org 2020-05-27 7:04 ` marxin at gcc dot gnu.org 2020-05-28 12:15 ` dcb314 at hotmail dot com [this message] 2020-05-29 14:25 ` jason at gcc dot gnu.org 2020-05-29 16:21 ` cvs-commit at gcc dot gnu.org 2020-05-29 16:22 ` jason at gcc dot gnu.org 2020-06-01 20:52 ` cvs-commit 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-95311-4-7BaLw52wV6@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).