[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 17:45:00 GMT 2018


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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Sabetay Toros from comment #6)
> the rules may be different but results must be the same.

No, that's not true. The point of the different rules is to do different
things.

> There is a flaw here. If gcc is right in *list-initialization * then direct
> initialization is wrong and should give the same result,

No.


More information about the Gcc-bugs mailing list