From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24755 invoked by alias); 16 Sep 2002 08:46:04 -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 24736 invoked by uid 71); 16 Sep 2002 08:46:03 -0000 Date: Mon, 16 Sep 2002 01:46:00 -0000 Message-ID: <20020916084603.24735.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Christian Neubauer Subject: Re: c++/7538: Constructors of static members are not called always Reply-To: Christian Neubauer X-SW-Source: 2002-09/txt/msg00451.txt.bz2 List-Id: The following reply was made to PR c++/7538; it has been noted by GNATS. From: Christian Neubauer To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, neu@iis.fhg.de, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/7538: Constructors of static members are not called always Date: Mon, 16 Sep 2002 10:38:27 +0200 Dear Nathan, no the issue is not solved in 3.0.4. I tried (before the submission) and again today. If you look in the second example the line saying "staticClass::staticClass() called" is not printed. This means that the static member class is not instanciated, what (in my opinion) is a bug. Please consider the problem again. Regards Christian Neubauer 1. link program using gcc and start + g++ main.o classA.o staticClass.o -o main + ./main staticClass:::staticClass() called main() called This should result in five: 5 main() finished + set +x 2. link program using a library and start + ar cru libtest.a classA.o staticClass.o + g++ main.o -L. -ltest -o main + ./main main() called This should result in five: 5 main() finished + set +x nathan@gcc.gnu.org wrote: > Synopsis: Constructors of static members are not called always > > State-Changed-From-To: open->closed > State-Changed-By: nathan > State-Changed-When: Fri Sep 13 16:15:25 2002 > State-Changed-Why: > works in 3.2 > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7538 -- Dr. Christian Neubauer Phone: +49 9131 776-355 FhG-IIS A, Audio & Multimedia Mobil: +49 160 5840467 Am Wolfsmantel 33, D-91058 Erlangen, Germany Fax: +49 9131 776-398