This is the mail archive of the gcc-bugs@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


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


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