the main function is as simple as this:


Compile with: g++-4.9 -std=c++14 -g -o main main.cpp
and run with ./main. I get segfault. gdb in bt shows that the segfault
happens inside unique_ptr destructor. So it is not a memory issue. 
Also since the code runs with less size (i.e size=1000 no problem) i assume
that something is wrong with unique_ptr and not my code. That's of course
only an assumption don't get me wrong :)

Thanks for looking at it



--
View this message in context: 
http://gcc.1065356.n5.nabble.com/Segmentation-fault-with-unique-ptr-tp1120921p1120949.html
Sent from the gcc - bugs mailing list archive at Nabble.com.

Reply via email to