You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But aggregates of basic_values with the generated default constructor
can't be value initialized or initialized from an empty list (https://cpp2.godbolt.org/z/f76WbYv4P):
Title:
@basic_value
default constructor is notimplicit
.Description:
We expect a value to be assignable from an empty argument list, like
x = ()
.Minimal reproducer (https://cpp2.godbolt.org/z/ahM4Pcdbq):
Commands:
cppfront main.cpp2 clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -I . main.cpp
Expected result:
public: t();
Actual result and error:
public: explicit t();
Cpp2 lowered to Cpp1:
The text was updated successfully, but these errors were encountered: