From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18882 invoked by alias); 14 Mar 2003 21:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18757 invoked by uid 71); 14 Mar 2003 21:36:01 -0000 Resent-Date: 14 Mar 2003 21:36:01 -0000 Resent-Message-ID: <20030314213601.18756.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, chrisk@mysticlabs.com Received: (qmail 17649 invoked by uid 48); 14 Mar 2003 21:30:05 -0000 Message-Id: <20030314213005.17647.qmail@sources.redhat.com> Date: Fri, 14 Mar 2003 21:36:00 -0000 From: chrisk@mysticlabs.com Reply-To: chrisk@mysticlabs.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10086: static const int unresolved in ? : construct X-SW-Source: 2003-03/txt/msg00891.txt.bz2 List-Id: >Number: 10086 >Category: c++ >Synopsis: static const int unresolved in ? : construct >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Mar 14 21:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Chris Kappler >Release: gcc version 3.2 20020927 (prerelease) >Organization: >Environment: Cygwin >Description: const static int variables show up as unresolved in the linker. >How-To-Repeat: g++ bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="bug.cpp" Content-Disposition: inline; filename="bug.cpp" #include using namespace std; class Base { public: const static int A = 0; const static int B = 1; }; class Child : public Base { public: void printAB(bool v); }; void Child::printAB(bool v) { int a = (v)?A:B; int b = (v)?A:B; cout<<"a is "<