public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/13967] [3.3?/3.4/3.5 regression] template template argument identifier lookup fails scoping rules Date: Mon, 02 Feb 2004 00:42:00 -0000 [thread overview] Message-ID: <20040202004226.7992.qmail@sources.redhat.com> (raw) In-Reply-To: <20040201233401.13967.gianni@mariani.ws> ------- Additional Comments From giovannibajo at libero dot it 2004-02-02 00:42 ------- Yes, it's a regression too. The final testcase which should be accepted is the following: ------------------------------------------------------------------- struct X { struct C { int x; }; struct Z { Z(float); }; template<typename T, typename A, template<typename,typename> class C> C<T, A> Func() { return C<T, A>(); // sees X::C not template parameter } template< typename Z > Z Zunc() { return Z(); // works ok } void foo(void) { Zunc<int>(); } }; ------------------------------------------------------------------- pr13967.cpp: In member function `C<T, A> X::Func()': pr13967.cpp:9: error: `X::C' is not a template pr13967.cpp: In member function `Z X::Zunc() [with Z = int]': pr13967.cpp:19: instantiated from here pr13967.cpp:14: error: no matching function for call to `X::Z::Z()' pr13967.cpp:4: note: candidates are: X::Z::Z(const X::Z&) pr13967.cpp:4: note: X::Z::Z(float) -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |rejects-valid Known to fail| |3.4.0 3.5.0 Known to work| |3.2.3 Last reconfirmed|0000-00-00 00:00:00 |2004-02-02 00:42:26 date| | Summary|template template argument |[3.3?/3.4/3.5 regression] |identifier lookup fails |template template argument |scoping rules |identifier lookup fails | |scoping rules http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13967
next prev parent reply other threads:[~2004-02-02 0:42 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-01 23:34 [Bug c++/13967] New: " gianni at mariani dot ws 2004-02-01 23:43 ` [Bug c++/13967] " gianni at mariani dot ws 2004-02-02 0:11 ` gianni at mariani dot ws 2004-02-02 0:42 ` giovannibajo at libero dot it [this message] 2004-02-02 1:02 ` [Bug c++/13967] [3.3?/3.4/3.5 regression] " gdr at integrable-solutions dot net 2004-02-02 1:18 ` gianni at mariani dot ws 2004-02-02 1:31 ` gdr at integrable-solutions dot net 2004-02-02 1:49 ` gianni at mariani dot ws 2004-02-02 2:18 ` gdr at integrable-solutions dot net 2004-02-02 3:00 ` gianni at mariani dot ws 2004-02-02 17:32 ` gdr at integrable-solutions dot net 2004-02-02 17:40 ` gdr at integrable-solutions dot net 2004-02-02 18:11 ` giovannibajo at libero dot it 2004-02-02 18:21 ` gianni at mariani dot ws 2004-02-02 19:17 ` gianni at mariani dot ws 2004-02-02 19:33 ` giovannibajo at libero dot it 2004-02-02 19:35 ` [Bug c++/13967] A warning could be emitted if a template parameter of a member template is begin shadowed by another member of the class giovannibajo at libero dot it 2004-02-02 20:44 ` gcc-bugs at michaelmellor dot com 2004-02-02 21:08 ` gdr at integrable-solutions dot net 2004-02-02 21:13 ` gdr at integrable-solutions dot net 2004-02-07 8:25 ` gianni at mariani dot ws 2004-02-07 8:29 ` pinskia at gcc dot gnu dot org 2004-02-07 9:06 ` giovannibajo at libero dot it 2004-02-07 13:11 ` gdr at integrable-solutions dot net 2004-02-14 1:12 ` giovannibajo at libero dot it 2004-03-31 9:38 ` giovannibajo at libero dot it
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=20040202004226.7992.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).