-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
count.index*32: unknown count type: 0x0 #2046
Comments
Interesting. Looks like a parsing bug. If you space out the math it works!
Tagged and we'll get this fixed. |
Thanks! If you need help fixing it, just point me into right direction and I will prepare PR in next few days |
@mitchellh @phinze another bug:
I'd like to get it fixed, should I take a look at |
@Fodoj What is the bug there? Our language doesn't do order of ops on its own (all operator precedence is the same). Wrap things in parens to get the order you want. |
@mitchellh I would normally expect basic math operations to function as they always do. So that kind of operator precedence is totally unexpected and feels unusual at least. |
@Fodoj If you'd like to add precedence that's fine with me, in that case |
@mitchellh sure. Could you point me into required types in codebase? that's mostly related to ast code, right? |
Precedence should just be the parser code, the YACC syntax (.y) in the config/lang directory. |
config/lang: don't see * as part of var name [GH-2046]
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
cidr_block = "${concat("10.0.0.", count.index*32, "/2")}"
=>count.index*32: unknown count type: 0x0
What could be the issue here?
The text was updated successfully, but these errors were encountered: