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
//=== Cpp2 type declarations ====================================================
#include"cpp2util.h"//=== Cpp2 type definitions and function declarations ===========================template<typename T> autoconst& v = 0;
automain() -> int;
//=== Cpp2 function definitions =================================================automain() -> int { v<cpp2::i32>==v<cpp2::i32>; }
main.cpp2:2:33: error: a space is required between a right angle bracket and an equals sign (use '> =')
2 | auto main() -> int { v<cpp2::i32>==v<cpp2::i32>; }
| ^~
| > =
The text was updated successfully, but these errors were encountered:
Title: Not emitting Cpp2 space changes Cpp1 parsing due to max munch.
Minimal reproducer (https://cpp2.godbolt.org/z/Kej4Kr1na):
Commands:
cppfront 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:
Cpp2 lowered to Cpp1:
Output:
The text was updated successfully, but these errors were encountered: