[Bug c++/86135] At run time, when the constructor tries to construct an objects element with a initializer-list (using c++11 style) is giving segmentation fault. The old style of initialize with parenthesis is working properly.
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 13 20:04:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86135
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You didn't provide a proper testcase so nobody can possibly explain why your
code crashes.
If it's similar to the code in comment 3 then model_t<std::vector<object_t>>
tries to construct a vector<object_t> from a vector<object_t> using list-init
which chooses the initializer_list constructor because object_t can be
constructed from vector<object_t>. It's the same bug 85577.
More information about the Gcc-bugs
mailing list