public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8338: Koenig lookup doesn't find enum value in special case
@ 2002-10-24 14:56 Detlef Vollmann
  0 siblings, 0 replies; 2+ messages in thread
From: Detlef Vollmann @ 2002-10-24 14:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8338; it has been noted by GNATS.

From: Detlef Vollmann <dv@vollmann.ch>
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 EnumType>
 class A
 {
 public:
     static const EnumType size = max;
     int table[size];
 };
 template <class EnumType>
 const EnumType A<EnumType>::size;
 
 
 namespace N
 {
 enum E { max = 5 };
 
 struct B
 {
     A<E> a;
 };
 
 } // N1
 
 int
 main()
 {
     N::B b;
 
     return 0;
 }
 
 
 --------------67E334396012ED2C59C210AF--
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/8338: Koenig lookup doesn't find enum value in special case
@ 2002-10-26 15:26 Detlef Vollmann
  0 siblings, 0 replies; 2+ messages in thread
From: Detlef Vollmann @ 2002-10-26 15:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8338; it has been noted by GNATS.

From: Detlef Vollmann <dv@vollmann.ch>
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: Sun, 27 Oct 2002 00:21:08 +0200

 Sorry, but I had a temporary blackout: of course, Koenig lookup
 searches for function names, but not for arguments.
 So g++ rejects my code correctly; the code is just illegal.
 So, you can close it.
 
 Sorry again for the false alarm.
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-26 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 14:56 c++/8338: Koenig lookup doesn't find enum value in special case Detlef Vollmann
2002-10-26 15:26 Detlef Vollmann

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).