From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13146 invoked by alias); 16 Aug 2002 12:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13122 invoked by uid 71); 16 Aug 2002 12:26:01 -0000 Date: Fri, 16 Aug 2002 05:33:00 -0000 Message-ID: <20020816122601.13121.qmail@sources.redhat.com> To: gdr@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/7606: GCC interprets wrong. Reply-To: Gabriel Dos Reis X-SW-Source: 2002-08/txt/msg00328.txt.bz2 List-Id: The following reply was made to PR c++/7606; it has been noted by GNATS. From: Gabriel Dos Reis To: comer@pisem.net Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/7606: GCC interprets wrong. Date: 16 Aug 2002 14:21:48 +0200 comer@pisem.net writes: [...] | >Class: accepts-illegal Your code was perfectly well-formed and GCC was right in accepting it. Koenig lookup considers, among others things, the classes and namespaces associated with type template-arguments. See 3.4.2/2: [...] If T is a template-id, its associated namespaces and classes are the namespace in which the template is defined; for member templates, the member template s class; the namespaces and classes associated with the types of the template arguments provided for template type parameters (excluding template template parameters); the namespaces in which any template template arguments are defined; and the classes in which any member templates used as template template arguments are defined. -- Gaby