From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31051 invoked by alias); 7 Aug 2003 07:06:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31041 invoked by uid 48); 7 Aug 2003 07:06:27 -0000 Date: Thu, 07 Aug 2003 07:06:00 -0000 Message-ID: <20030807070627.31040.qmail@sources.redhat.com> From: "benko at sztaki dot hu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030806091852.11828.benko@sztaki.hu> References: <20030806091852.11828.benko@sztaki.hu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11828] [3.4 regression] qualified dependent name looked up too early X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg00985.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11828 ------- Additional Comments From benko at sztaki dot hu 2003-08-07 07:06 ------- Looking at PR 11808, I think it's different, since this problem vanishes if at the point of the call all overloads are seen. What's more, namespaces are not needed at all to reproduce this bug: hydra:~/c/proba$ cat templ_overload.cc template void f(T a) {a.f();} template void g(T a) {::f(a);} struct s {}; void f(s) {} int main() { g(s()); return 0; } hydra:~/c/proba$ g++-cvs templ_overload.cc templ_overload.cc: In function `void f(T) [with T = s]': templ_overload.cc:3: instantiated from `void g(T) [with T = s]' templ_overload.cc:11: instantiated from here templ_overload.cc:1: error: 'struct s' has no member named 'f' zsh: exit 1 g++-cvs templ_overload.cc hydra:~/c/proba$ But let's see what happens.