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
emp.cpp2...
temp.cpp2(1,34): error: ill-formed initializer (at 'i32')
temp.cpp2(1,1): error: unexpected text at end of Cpp2 code section (at 'main')
temp.cpp2(1,0): error: parse failed for section starting here
I tried to have a look at the parsing. Either the template parse needs to be elevated before the binary < operator or this error needs to be non fatal.
Title: Pointer type not parsed as template argument.
Description:
See #456 (comment).
It's valid grammar.
I guess the error is being emitted
while parsing the expression production
without regard for the context.
Minimal reproducer (https://cpp2.godbolt.org/z/rWYevT9h7):
Commands:
cppfront -clean-cpp1 main.cpp2 clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -I . main.cpp
Expected result:
Actual result and error:
Output:The text was updated successfully, but these errors were encountered: