[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 14:52:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86135

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is not a bug, GCC is correct. With list-initialization the compiler does
not always select a copy/move constructor even when the argument is the same
type as the object being constructed.

*** This bug has been marked as a duplicate of bug 85577 ***


More information about the Gcc-bugs mailing list