public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/2595: static const struct variable declaration inside struct declaration causes compiler error
@ 2001-04-19 19:16 ccarena
  0 siblings, 0 replies; only message in thread
From: ccarena @ 2001-04-19 19:16 UTC (permalink / raw)
  To: gcc-gnats

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-19 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-19 19:16 c++/2595: static const struct variable declaration inside struct declaration causes compiler error ccarena

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