Calling a virtual function from a derived class constructorThanks for your reply! What you say makes sense and is consistent with what I've seen happen with te...
C++ code segfaults when compiled -O with Apple's LLVM compiler, but not with g++ -7.2.0@JLBorges: thanks. Actually I had tried running it with command-line lldb, but I compiled with -fsan...
Calling a virtual function from a derived class constructorI have read in many places that it is dangerous to call a virtual function from a constructor. The r...
C++ code segfaults when compiled -O with Apple's LLVM compiler, but not with g++ -7.2.0Thanks.
C++ code segfaults when compiled -O with Apple's LLVM compiler, but not with g++ -7.2.0@lastchance - Thanks for reproducing my crash. I confirm that your smaller example also crashes. Int...
This user does not accept Private Messages