intel / intel/confidential-computing.sgx.sdk
Incorrect error location in edger8r messages
Open
bug
- Dominant language
- C++
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Given the following foo.edl:
enclave {
trusted {
// line 3
// line 4
public_typo void foo();
};
};
$ sgx_edger8r foo.edl
error: foo.edl:3:23: unexpected token: void
The error is reported on 3rd line where as the error is actually in the 5th line.
Investigation reveals that comments are being stripped out using GCC as a pre-processor in
https://github.com/intel/linux-sgx/blob/master/sdk/edger8r/linux/Preprocessor.ml#L58
Contributor guide
Assessment
This issue has not been assessed yet.