Segmentation fault with unique_ptr
tassos_souris
tassos_souris@yahoo.gr
Fri Feb 13 11:15:00 GMT 2015
Hi to everyone,
I am using g++-4.9 with -std=c++14 option (no optimization flag). For some
reason i have the following singly_linked_list class. The usage is this:
1) Construct a singly linked list
2) push_front() at least 100000000 values (this is important -- i.e for 1000
values i don't get a segfault)
3) Destroy the singly linked list
At step 3 i get a segfault. What is wrong with the code?
I would appreciate it if you could take a peek and help.
(ps: bardon me if this isn't the right forum for such questions)
--
View this message in context: http://gcc.1065356.n5.nabble.com/Segmentation-fault-with-unique-ptr-tp1120921.html
Sent from the gcc - bugs mailing list archive at Nabble.com.
More information about the Gcc-bugs
mailing list