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
Since commit 025d7af, ... is an identifier.
So ... in a template-parameter-declaration-list lowers to typename ...,
just like T would lower to typename T.
Title:
<...>
lowers to unnamed pack.Description:
Since commit 025d7af,
...
is an identifier.So
...
in a template-parameter-declaration-list lowers totypename ...
,just like
T
would lower totypename T
.Feature or bug?
I call bug.
#603 makes it so that template template parameters are emitted.
Because it chooses to lower them unnamed, it lowers
T: <...>
totemplate<typename> class T
.The existing branch in
main
to print a pack's ellipsis,if (n.declaration->is_variadic) {
(https://github.com/hsutter/cppfront/pull/603/files#diff-e683e1259bbc0d6de7f1fbf797fb772f31a0a1ef2254ec317d15c298102fa3f3R3931)isn't exercised because it the declaration isn't variadic (it's name just happens to be
...
).Minimal reproducer (https://cpp2.godbolt.org/z/YbzMc3dh3):
Commands:
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp
Expected result: A diagnostic due to naming a declaration
...
.Actual result and error:
Cpp2 lowered to Cpp1:
The text was updated successfully, but these errors were encountered: