[BUG] template
in front of _qualified-id_ instead of _unqualified-id_ in UFCS
#854
Labels
bug
Something isn't working
Title:
template
in front of qualified-id instead of unqualified-id in UFCS.Minimal reproducer (https://cpp2.godbolt.org/z/fTM758bhW):
Commands:
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -Werror=unused-value -Werror=unused-parameter -I . main.cpp
Expected result:
Cpp1
std::views::iota(0, 42).std::ranges::template to<std::vector>()
(https://cpp1.godbolt.org/z/G44hKecs5).Actual result and error:
Cpp1
std::views::iota(0, 42).template std::ranges::to<std::vector>()
(https://cpp1.godbolt.org/z/s5fWYbxdP).Cpp2 lowered to Cpp1:
Output:
The text was updated successfully, but these errors were encountered: