From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8600 invoked by alias); 24 Oct 2002 21:56:03 -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 8575 invoked by uid 71); 24 Oct 2002 21:56:02 -0000 Date: Thu, 24 Oct 2002 14:56:00 -0000 Message-ID: <20021024215602.8574.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Detlef Vollmann Subject: Re: c++/8338: Koenig lookup doesn't find enum value in special case Reply-To: Detlef Vollmann X-SW-Source: 2002-10/txt/msg00961.txt.bz2 List-Id: The following reply was made to PR c++/8338; it has been noted by GNATS. From: Detlef Vollmann To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, dv@vollmann.ch, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/8338: Koenig lookup doesn't find enum value in special case Date: Thu, 24 Oct 2002 22:34:17 +0200 This is a multi-part message in MIME format. --------------67E334396012ED2C59C210AF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit After looking into the case a little more, I found out that the problem in fact is not related to the incomplete type of a template parameter. Attached is a small program where the Koenig lookup doesn't work though all classes are fully defined. Detlef -- Detlef Vollmann vollmann engineering gmbh Tel: +41-41-4120911 P.O. Box 5106 Fax: +41-41-4120912 CH-6000 Luzern 5 / Switzerland eMail: dv@vollmann.ch --------------67E334396012ED2C59C210AF Content-Type: text/plain; charset=us-ascii; name="test2.cc" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test2.cc" template class A { public: static const EnumType size = max; int table[size]; }; template const EnumType A::size; namespace N { enum E { max = 5 }; struct B { A a; }; } // N1 int main() { N::B b; return 0; } --------------67E334396012ED2C59C210AF--