This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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++ Static String Causes Segmentation Fault


Great!  Thanks for your reply, Jonathan.


Jonathan Wakely wrote:


----- Original Message ----

> 2009/7/22 Ben Atkinson:
> >
> > Thanks for the response, Ian.   With an eye toward correcting the problem
> > in my source code, does C++ make any guarantees about global
> > constructors in the same source?
> 
> They are constructed in the order they appear in the source, and
> destroyed in the reverse order.
> 
> > Several initial tests indicate that the following code works regardless of
> > whether main.cpp or StringTest.cpp appears first on the g++ command
> > line, but does C++ guarantee it?
> 
> Yes.



      


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