public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "maxim dot yegorushkin at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/2922] [DR 197] two-stage lookup for unqualified function calls with type-dependent arguments Date: Sat, 23 Apr 2005 10:55:00 -0000 [thread overview] Message-ID: <20050423105505.17071.qmail@sourceware.org> (raw) In-Reply-To: <20010524020601.2922.jens.maurer@gmx.net> ------- Additional Comments From maxim dot yegorushkin at gmail dot com 2005-04-23 10:55 ------- (In reply to comment #10) > Not working on this anymore. Andrew closed PR 11296 as a dup of this, but I'm > not 100% sure. This is the testcase, so that it can be tested and added to the > testsuite: > > ----------------------------------------------------- > namespace N { > template <class T> T foo (T) { return T (); } > template <class T> T bar (T t) { return foo (t); } > } > > struct S { S (int i = 0): i_ (i) { } int i_; }; > > namespace N { > /* template <> */ S foo (S) { return S (1); } > } > > int main () > { > return 1 == N::bar (S ()).i_; > } > ----------------------------------------------------- > (should return 0, but returns 1). > Here is another test case that does compile time two-phase name check. Comeau online 4.3.3 BETA August 4, 2003 passes it, gcc 3.4.3 fails. For discussion please see http://groups-beta.google.com/group/comp.lang.c++. moderated/msg/c7227abb97603d15?hl=en namespace tpl_ { template<class T> char test(T); template<class T> struct check { static T const t; enum { value = 1 == sizeof(test(t)) }; }; double test(int); } bool const two_phase_lookup_supported = tpl_::check<int>::value; int compile_time_assert[two_phase_lookup_supported ? 1 : -1]; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2922
next prev parent reply other threads:[~2005-04-23 10:55 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20010524020601.2922.jens.maurer@gmx.net> 2004-04-29 3:29 ` [Bug c++/2922] [DR 197] two-stage name lookup giovannibajo at libero dot it 2004-04-29 13:54 ` giovannibajo at libero dot it 2004-07-29 5:07 ` [Bug c++/2922] [DR 197] two-stage lookup for unqualified function calls with type-dependent arguments pinskia at gcc dot gnu dot org 2004-07-29 5:16 ` pinskia at gcc dot gnu dot org 2004-07-31 0:21 ` giovannibajo at libero dot it 2005-04-23 10:55 ` maxim dot yegorushkin at gmail dot com [this message] 2005-07-21 3:56 ` cvs-commit at gcc dot gnu dot org 2005-07-21 4:51 ` pinskia at gcc dot gnu dot org 2005-07-21 4:51 ` cvs-commit at gcc dot gnu dot org 2005-07-21 14:27 ` cvs-commit at gcc dot gnu dot org 2005-07-21 15:32 ` cvs-commit at gcc dot gnu dot org 2005-07-21 20:33 ` sebor at roguewave dot com 2005-09-04 18:14 ` pinskia at gcc dot gnu dot org 2005-09-04 18:15 ` pinskia at gcc dot gnu dot org [not found] <bug-2922-1824@http.gcc.gnu.org/bugzilla/> 2005-12-06 19:27 ` pinskia at gcc dot gnu dot org 2005-12-19 16:44 ` pinskia at gcc dot gnu dot org 2005-12-25 2:14 ` pinskia at gcc dot gnu dot org 2006-02-02 18:47 ` pinskia at gcc dot gnu dot org 2006-02-16 0:33 ` pinskia at gcc dot gnu dot org 2006-08-07 14:50 ` pinskia at gcc dot gnu dot org 2006-09-25 22:54 ` pinskia at gcc dot gnu dot org 2006-12-03 17:34 ` pinskia at gcc dot gnu dot org 2006-12-16 18:34 ` pinskia at gcc dot gnu dot org 2007-06-20 21:18 ` pinskia at gcc dot gnu dot org [not found] <bug-2922-4@http.gcc.gnu.org/bugzilla/> 2014-02-16 13:16 ` jackie.rosen at hushmail 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=20050423105505.17071.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).