[BUG] fix(reflect): recognize default constructor overload in @basic_value
#1305
Labels
bug
Something isn't working
@basic_value
#1305
Title: fix(reflect): recognize default constructor overload in
@basic_value
.Description:
Now that we have default function arguments,
it's possible for a default constructor
to overload with a constructor with default arguments.
Minimal reproducer (https://cpp2.godbolt.org/z/jrs6YYbab):
Commands:
cppfront main.cpp2 clang++-18 -std=c++26 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -Werror=unused-value -Werror=unused-parameter -Werror=unused-variable -I . main.cpp
Expected result: The default constructor not to be overloaded.
Actual result and error:
Cpp2 lowered to Cpp1:
See also:
The text was updated successfully, but these errors were encountered: