Open pavlo-hilei opened 6 months ago
This code doesn't show correct caret in error message:
@kernel void test_kern() { @outer for (int i = 0; j < 10; ++i) { @inner for (int j = 0; j < 10; ++j) { } } }
Error:
./temp/test18.cpp:2:5: error: use of undeclared identifier 'j' 2 | @outer for (int i = 0; j < 10; ++i) { | ^
Expected:
This is a problem only when normalization is done.
This error will be generated during AST parsing on gnu to std stage. I propose to save delta tree produced by previous stages to recover correct column
This code doesn't show correct caret in error message:
Error:
Expected:
This is a problem only when normalization is done.