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
vast-front -x c -vast-emit-mlir=hl test_subscript_enum_verify.c
Note that this issue only occurs if the enum value used for the index is declared using the enum keyword (i.e., its type is an elaborated type). This means that the following two similar programs do not raise errors:
VAST version
Ubuntu clang version 18.1.8 (++20240615103753+3b5b5c1ec4a3-1
exp120240615223858.136) Target: x86_64-pc-linux-gnu Thread model: posixLLVM version
18.1.8
Operating system
Ubuntu 22.04.4 LTS x86_64
Description
The VAST codegen module verifier fails to verify subscript expressions when the index operand is an enum value. I receive the following error:
Steps to Reproduce
Create a file
test_subscript_enum_verify.c
with the following contents:Run
vast-front
on the file like so:Note that this issue only occurs if the enum value used for the index is declared using the
enum
keyword (i.e., its type is an elaborated type). This means that the following two similar programs do not raise errors:The text was updated successfully, but these errors were encountered: