[Bug c++/114123] list-initialization with a single element

2024-02-26 Thread yx_liu at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114123 --- Comment #3 from Yaxun Liu --- So, since vector has a ctor that accepts initializer list, that ctor is favored over its copy ctor. With the initializer-list ctor, a is converted to A(a) first, then {A(a)} is passed to that ctor.

[Bug c++/114123] New: list-initialization with a single element

2024-02-26 Thread yx_liu at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114123 Bug ID: 114123 Summary: list-initialization with a single element Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++