From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-id: <20010420021541.4148.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00350.html List-Id: >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: