This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7538: Constructors of static members are not called always


The following reply was made to PR c++/7538; it has been noted by GNATS.

From: Christian Neubauer <neu@iis.fhg.de>
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 15:18:04 +0200

 Dear Nathan,
 
 again: the problem is not wether it prints 5 or not. The problem is that 
 it should print
 
 ---------
 staticClass:::staticClass() called
 main() called
 This should result in five: 5
 main() finished
 ----------
 
 however it prints
 
 ----------
 main() called
 This should result in five: 5
 main() finished
 ----------
 
 Obviously the first line "staticClass::...." is missing. This is the bug.
 
 Best regards
 Christian Neubauer
 
 nathan@gcc.gnu.org wrote:
 > Synopsis: Constructors of static members are not called always
 > 
 > State-Changed-From-To: closed->analyzed
 > State-Changed-By: nathan
 > State-Changed-When: Mon Sep 16 06:08:23 2002
 > State-Changed-Why:
 >     confirmed. Please note, that although the testcase appears
 >     to be about 5, it is not.
 >     main() called
 >     This should result in five: 5
 >     main() finished
 >     this is a failure, even though it does produce 5
 > 
 > 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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]