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:
./temp/test18.cpp:2:5: error: use of undeclared identifier 'j'
2 | @outer for (int i = 0; j < 10; ++i) {
| ^
This is a problem only when normalization is done.