solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.31k stars 116 forks source link

Confusing error for template for loop with (non-local) variable definition in initialiser #188

Closed solemnwarning closed 2 years ago

solemnwarning commented 2 years ago

e.g:

for(int i = 0; i < x; ++i) {}

This comes through as an invalid expression since the for loop grammar doesn't allow non-local variable definitions, should have a clearer error message.