From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25598 invoked by alias); 11 Aug 2003 07:04:14 -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 25586 invoked by uid 48); 11 Aug 2003 07:04:13 -0000 Date: Mon, 11 Aug 2003 07:04:00 -0000 Message-ID: <20030811070413.25585.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/msg01304.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-11 07:04 ------- Well, yes, the global namespace is a namespace, but now everything is in the same namespace. I think I've found the ultimate testcase (the filename became non-descriptive): hydra:~/c/proba$ cat templ_overload.cc template void g(T a) {::f(a);} hydra:~/c/proba$ g++-cvs templ_overload.cc templ_overload.cc: In function `void g(T)': templ_overload.cc:1: error: `::f' has not been declared zsh: exit 1 g++-cvs templ_overload.cc hydra:~/c/proba$ (And let me add that workaround 2, though works, forces a coding style where everything is included as late as possible, that is, #include's are not grouped at the beginning of a file but scattered throughout.)