public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Xavier.Decoret@imag.fr
To: gcc-gnats@gcc.gnu.org
Subject: c++/3560: Problem with template enum
Date: Wed, 04 Jul 2001 08:46:00 -0000	[thread overview]
Message-ID: <20010704154518.4827.qmail@sourceware.cygnus.com> (raw)

>Number:         3560
>Category:       c++
>Synopsis:       Problem with template enum
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 04 08:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Xavier Decoret
>Release:        gcc version 3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
when compiled, the attached file gives:

main.C:7: invalid use of undefined type `enum Foo<T>::Exceptions'
main.C:6: forward declaration of `enum Foo<T>::Exceptions'

If you remove the template argument (which is actually unused)
then it compiles.
>How-To-Repeat:
template <class T>
class Foo
{
public:
  enum Exceptions { A,B,C };
  void foo() throw(Exceptions)
    {
    }
};

int main()
{
  return 0;
}
>Fix:
dunnot know :-)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.C"

CnRlbXBsYXRlIDxjbGFzcyBUPgpjbGFzcyBGb28KewpwdWJsaWM6CiAgZW51bSBFeGNlcHRpb25z
IHsgQSxCLEMgfTsKICB2b2lkIGZvbygpIHRocm93KEV4Y2VwdGlvbnMpCiAgICB7CiAgICB9Cn07
CgppbnQgbWFpbigpCnsKICByZXR1cm4gMDsKfQo=


             reply	other threads:[~2001-07-04  8:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-04  8:46 Xavier.Decoret [this message]
2001-07-07  6:01 lerdsuwa
2001-10-30  6:08 lerdsuwa
2002-04-19  8:06 Richard Hunt

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=20010704154518.4827.qmail@sourceware.cygnus.com \
    --to=xavier.decoret@imag.fr \
    --cc=gcc-gnats@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).