-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to analyze lowered AST: AnalyzerError([Diagnostic { severity: Error, code: None, message: "No field... at compiler/src/lib.rs:55:59 #470
Comments
Should a field like my_tuple.item00 be interpreted as item0 ? or rather, should the compiler give an error message like: |
As far as i understand:
I'm also pretty sure that the answer to your question hasn't been settled, otherwise the bug wouldn't be here. |
I agree, leading zeros should not be valid. This is where tuple attributes are validated: fe/crates/analyzer/src/traversal/expressions.rs Lines 576 to 583 in c8e58b5
Basically we just need to check for a single leading zero, so something as simple as this should work: if |
Fixed in #510 |
Compiling this file:
Using
for fuzzing. Using https://github.com/agroce/afl-compiler-fuzzer
The text was updated successfully, but these errors were encountered: