public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Theodore.Papadopoulo@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Subject: c++/5658: Regression on redefinition of a type in a derived class. Date: Mon, 11 Feb 2002 11:36:00 -0000 [thread overview] Message-ID: <20020211192707.17544.qmail@sources.redhat.com> (raw) >Number: 5658 >Category: c++ >Synopsis: Regression on redefinition of a type in a derived class. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Mon Feb 11 11:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Theodore Papadopoulo >Release: unknown-1.0 >Organization: >Environment: i686-pc-linux-gnu Linux 2.2.18 >Description: This is a regression from 3.0 or gcc version 3.1 20011022. The following minimal example now fails to compile. This might be related to the correction of C++ bug 72. What is really strange is that if the constructor for B is removed, then everything is compiling again. vanuatu->g++ TemplateInheritance.C TemplateInheritance.C: In instantiation of `B<T>::B() [with T = int]': TemplateInheritance.C:18: instantiated from here TemplateInheritance.C:14: declaration of `template<class U> struct B<int>::iterator' TemplateInheritance.C:12: conflicts with previous declaration `template<class U> struct B<int>::iterator' TemplateInheritance.C:14: declaration of `template<class U> struct B<int>::iterator' TemplateInheritance.C:12: conflicts with previous declaration `template<class U> struct B<int>::iterator' TemplateInheritance.C:14: declaration of `template<class U> struct B<int>::iterator' TemplateInheritance.C:12: conflicts with previous declaration `template<class U> struct B<int>::iterator' >How-To-Repeat: Just compile the program above with a recent compiler. >Fix: I did not find one, that is why I believe the problem is serious. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="TemplateInheritance.C" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="TemplateInheritance.C" Ly8gQnVpbGQgZG9uJ3QgbGluazoKCi8vIENvcHlyaWdodCAoQykgMjAwMiBGcmVlIFNvZnR3YXJl IEZvdW5kYXRpb24sIEluYy4KLy8gQ29udHJpYnV0ZWQgYnkgVGhlb2RvcmUuUGFwYWRvcG91bG8g MTEgRmViIDIwMDIgPFRoZW9kb3JlLlBhcGFkb3BvdWxvQHNvcGhpYS5pbnJpYS5mcj4KCnN0cnVj dCBBIHsKICAgIHR5cGVkZWYgaW50IGl0ZXJhdG9yOwp9Owp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4K c3RydWN0IEI6IHB1YmxpYyBBIHsKICAgIHRlbXBsYXRlIDx0eXBlbmFtZSBVPgogICAgc3RydWN0 IGl0ZXJhdG9yIHsKICAgIH07CiAgICBCKCkgeyB9Cn07CmludCBtYWluKCkgCnsKICAgIEI8aW50 PiBhOyAKfTsK
next reply other threads:[~2002-02-11 19:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-11 11:36 Theodore.Papadopoulo [this message] 2002-03-03 14:59 nathan 2002-03-17 9:45 nathan 2002-04-16 15:39 nathan
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=20020211192707.17544.qmail@sources.redhat.com \ --to=theodore.papadopoulo@sophia.inria.fr \ --cc=gcc-gnats@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).