public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/13323] [3.3/3.4 regression] Template code does not compile in presence of typedef Date: Fri, 05 Dec 2003 21:12:00 -0000 [thread overview] Message-ID: <20031205211252.27557.qmail@sources.redhat.com> (raw) In-Reply-To: <20031205210149.13323.david.lee@teracruz.com> ------- Additional Comments From bangerth at dealii dot org 2003-12-05 21:12 ------- This is clearly a bug, and a regression on 3.3/mainline w.r.t. 3.2.x. Here's an extract: ------------------------- template <class T> struct B { virtual operator T() const = 0; }; template <class T> struct D : B<T> { virtual operator T() const; }; typedef int i; typedef B<i> Bi; D<int> i32; --------------------------- g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -c x.cc x.cc:13: error: cannot declare variable `i32' to be of type `D<int>' x.cc:13: error: because the following virtual functions are abstract: x.cc:2: error: B<T>::operator T() const [with T = i] W. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |rejects-valid Last reconfirmed|0000-00-00 00:00:00 |2003-12-05 21:12:51 date| | Summary|Template code does not |[3.3/3.4 regression] |compile in presence of |Template code does not |typedef |compile in presence of | |typedef Target Milestone|--- |3.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13323
next prev parent reply other threads:[~2003-12-05 21:12 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-12-05 21:01 [Bug c++/13323] New: " david dot lee at teracruz dot com 2003-12-05 21:12 ` bangerth at dealii dot org [this message] 2003-12-06 2:46 ` [Bug c++/13323] [3.3/3.4 regression] " pinskia at gcc dot gnu dot org 2003-12-06 22:11 ` cvs-commit at gcc dot gnu dot org 2003-12-06 22:19 ` cvs-commit at gcc dot gnu dot org 2003-12-06 22:20 ` mmitchel at gcc dot gnu dot org 2003-12-08 22:17 ` david dot lee at teracruz 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=20031205211252.27557.qmail@sources.redhat.com \ --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).