https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113007
--- Comment #7 from Pavel Novikov ---
(In reply to Jonathan Wakely from comment #5&6)
Got it.
Thank you for taking the time to expansively explain what I left out, and
confirming my understanding.
Now it's time to file a bug in MSVC's standar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113007
--- Comment #4 from Pavel Novikov ---
Interesting. Thank you for explanation.
Indeed the standard says all over that narrowing conversion in initialization
is prohibited, though this code compiles:
int i = 42;
bool b[] = {i}; // narrow
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113007
Bug ID: 113007
Summary: `std::variant` converting constructor and `operator=`
compile while the C++ Standard says they must not
Product: gcc
Version: 13.2.1
Status: UNCO