public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Detlef Vollmann <dv@vollmann.ch>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/8338: Koenig lookup doesn't find enum value in special case
Date: Thu, 24 Oct 2002 14:56:00 -0000	[thread overview]
Message-ID: <20021024215602.8574.qmail@sources.redhat.com> (raw)

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


             reply	other threads:[~2002-10-24 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24 14:56 Detlef Vollmann [this message]
2002-10-26 15:26 Detlef Vollmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021024215602.8574.qmail@sources.redhat.com \
    --to=dv@vollmann.ch \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).