public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: francois.delobel@wanadoo.fr To: gcc-gnats@gcc.gnu.org Subject: c++/10639: using an inner class in a template class, G++ can't detect invalid constructor Date: Tue, 06 May 2003 09:06:00 -0000 [thread overview] Message-ID: <20030506090118.9897.qmail@sources.redhat.com> (raw) >Number: 10639 >Category: c++ >Synopsis: using an inner class in a template class, G++ can't detect invalid constructor >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue May 06 09:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Francois Delobel >Release: gcc version 2.95.4 20011002 (Debian prerelease) & gcc 3.2.3 20030415 (Debian prerelease) & version gcc 3.3 20030415 (Debian prerelease) >Organization: >Environment: Linux (debian sarge, 2.4.20-k7, running on AMD XP1900) >Description: context: using an inner class in a template class error: g++ can't detect an incorrect line (constructor returning a value) and exits with internal compiler error. ---- essai.cpp (preprocessed, 30 lines)-- # 1 "essai.cpp" # 1 "<interne>" # 1 "<ligne de commande>" # 1 "essai.cpp" template <class T> class C { public: class Inner; C(const T& t); }; template <class T> class C<T>::Inner { public: Inner(); }; template <class T> C<T>::C(const T& t) { } template <class T> T C<T>::Inner::Inner() { } int main() { C<int> o(7); } >How-To-Repeat: g++ -Wall -ansi essai.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-05-06 9:06 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-06 9:06 francois.delobel [this message] 2003-05-06 10:18 giovannibajo
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=20030506090118.9897.qmail@sources.redhat.com \ --to=francois.delobel@wanadoo.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).