public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/24161] [3.4/4.0/4.1 Regression] Lookup of template member function finds global type. Date: Mon, 03 Oct 2005 00:16:00 -0000 [thread overview] Message-ID: <20051003001607.20197.qmail@sourceware.org> (raw) In-Reply-To: <bug-24161-5876@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from mmitchel at gcc dot gnu dot org 2005-10-03 00:16 ------- Until DR228 the name following ".template" had to be a member template, so the code would have been invalid on those grounds. However, even after DR228, I don't think this is valid code. The name lookup done after ".template" must include templates in the global scope; DR 228 makes that clear. EDG 3.6 rejects the program in its strict mode, as well, giving two messages: "pr24161.cpp", line 7: error: name following "template" must be a member template t.template f< int >(); ^ "pr24161.cpp", line 7: error: too few arguments for class template "f" t.template f< int >(); ^ -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24161
next prev parent reply other threads:[~2005-10-03 0:16 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-24161-5876@http.gcc.gnu.org/bugzilla/> 2005-10-02 16:25 ` redi at gcc dot gnu dot org 2005-10-02 22:12 ` mmitchel at gcc dot gnu dot org 2005-10-03 0:16 ` mmitchel at gcc dot gnu dot org [this message] 2005-10-03 16:55 ` redi at gcc dot gnu dot org 2005-10-03 16:56 ` redi at gcc dot gnu dot org 2005-10-03 17:06 ` pinskia at gcc dot gnu dot org 2005-10-03 17:08 ` mark at codesourcery dot com 2005-10-03 17:54 ` redi at gcc dot gnu dot org 2005-10-04 21:43 ` anthony dot ajw at gmail dot com 2005-10-05 21:16 ` redi at gcc dot gnu dot org [not found] <bug-24161-4@http.gcc.gnu.org/bugzilla/> 2011-03-01 1:32 ` redi at gcc dot gnu.org 2015-01-14 14:57 ` cameron314 at gmail dot com 2015-01-14 15:08 ` redi at gcc dot gnu.org 2005-10-01 13:59 [Bug c++/24161] New: " redi at gcc dot gnu dot org 2005-10-01 15:49 ` [Bug c++/24161] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
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=20051003001607.20197.qmail@sourceware.org \ --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).