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
main.cpp2...
main.cpp2(1,12): error: ill-formed initializer (at '{')
main.cpp2(1,1): error: unexpected text at end of Cpp2 code section (at 'main')
main.cpp2(1,0): error: parse failed for section starting here
The text was updated successfully, but these errors were encountered:
Title: Empty template argument list is ill-formed.
Description:
Despite the grammar allowing it:
Minimal reproducer (https://cpp2.godbolt.org/z/TvMhbhcTq):
Commands:
cppfront -clean-cpp1 main.cpp2 clang++17 -std=c++2b -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -I . main.cpp
Expected result:
A well-formed program.
Actual result and error:
Output.
The text was updated successfully, but these errors were encountered: