public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Giovanni Bajo" <giovannibajo@libero.it> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/10385: Internal compiler error in build_up_reference, at cp/cvt.c:353 Date: Sat, 12 Apr 2003 17:26:00 -0000 [thread overview] Message-ID: <20030412172600.8546.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/10385; it has been noted by GNATS. From: "Giovanni Bajo" <giovannibajo@libero.it> To: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <douglas@coc.ufrj.br> Cc: "Wolfgang Bangerth" <bangerth@ices.utexas.edu> Subject: Re: c++/10385: Internal compiler error in build_up_reference, at cp/cvt.c:353 Date: Sat, 12 Apr 2003 19:21:37 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p r=10385 Confirmed on GCC 3.2, 3.2.2 and 3.3 20030401. Reduced testcase is: ------------------------------------------------- struct Foo {}; struct Bar { void func(void); }; Bar& GetBar(void); int main() { dynamic_cast<Foo&>( GetBar().func ) } -------------------------------------------------- pr10385.cpp: In function `int main()': pr10385.cpp:13: internal compiler error: in build_up_reference, at cp/cvt.c:356 Please submit a full bug report, GCC 2.95.3 gives the following error message: pr10385.cpp:13: sorry, not implemented: `overload' not supported by dump_expr pr10385.cpp: In function `int main()': pr10385.cpp:13: cannot dynamic_cast `GetBar()->{error}' (of type `{unknown type} ') to type `struct Foo &' pr10385.cpp:14: parse error before `}' The error message we get on 2.95 (even though it is not complete due to the 'error' and 'unknown type') gives some clue about what's wrong with the code, so I'd still rate it as a 3.2/3.3 regression. Somebody should check it on 3.4 (mainline broken on cygwin). The code is obviously illegal, fixing it makes the ICE disappear. Giovanni Bajo
next reply other threads:[~2003-04-12 17:26 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-12 17:26 Giovanni Bajo [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-04-14 13:42 bangerth 2003-04-12 6:56 douglas
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=20030412172600.8546.qmail@sources.redhat.com \ --to=giovannibajo@libero.it \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).