public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: ccarena@home.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/2595: static const struct variable declaration inside struct declaration causes compiler error
Date: Thu, 19 Apr 2001 19:16:00 -0000	[thread overview]
Message-ID: <20010420021541.4148.qmail@sourceware.cygnus.com> (raw)

>Number:         2595
>Category:       c++
>Synopsis:       static const struct variable declaration inside struct declaration causes compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 19 19:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Arena
>Release:        g++ 2.9.6
>Organization:
>Environment:
Linux Redhat 7.0
>Description:
A static const variable declaration causes a compiler error when appearing inside the struct declaration.

>How-To-Repeat:
g++ -c -D_SHOW_ERROR test.cpp
>Fix:
Change the static const var to be a function returning the same value -- this is just a workaround. I don't know how to fix it at this time.
>Release-Note:
>Audit-Trail:
>Unformatted:


                 reply	other threads:[~2001-04-19 19:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20010420021541.4148.qmail@sourceware.cygnus.com \
    --to=ccarena@home.com \
    --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).