Re: A problem about g++ 4.8.5

2024-03-28 Thread Jonathan Wakely via Gcc
Hello, This mailing list is for discussion the development of GCC itself. Please use the gcc-help mailing list for help questions. Please send any replies to that list instead of this one, thanks. On Thu, 28 Mar 2024 at 09:35, shaoben zhu via Gcc wrote: > > I compile my program using g++ 4.8.5, I

A problem about g++ 4.8.5

2024-03-28 Thread shaoben zhu via Gcc
I compile my program using g++ 4.8.5, I find that when my program exits, it first deconstructs the static member variables of class A, and then deconstructs a global object of class A. This caused an error in my program. Could you tell me how can I avoid this problem?Upgrade compiler version?Modify