Skip to content

non-OKL attribute related error in modified by normalizer line #199

@pavlo-hilei

Description

@pavlo-hilei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions