Closed JohelEGP closed 7 months ago
Title: Missing ellipsis of pack in qualified-id of definition.
Minimal reproducer (https://cpp2.godbolt.org/z/f1vEraonq):
t: @struct <Args...> type = { f: <T> () = { } } main: () = { }
Expected result:
template <typename ...Args> template<typename T> auto t<Args...>::f() -> void{}
Actual result and error:
template <typename ...Args> template<typename T> auto t<Args>::f() -> void{}
Output:
main.cpp2:2:57: error: qualifier contains unexpanded parameter pack 'Args' 2 | template <typename ...Args> template<typename T> auto t<Args>::f() -> void{} | ^ 1 error generated.
Title: Missing ellipsis of pack in qualified-id of definition.
Minimal reproducer (https://cpp2.godbolt.org/z/f1vEraonq):
Commands:
```bash 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:
Actual result and error:
Cpp2 lowered to Cpp1:
```C++ //=== Cpp2 type declarations ==================================================== #include "cpp2util.h" #line 1 "/app/example.cpp2" templateOutput: