Improve error message when using a configurable in the initialization of another configurable #5979
Labels
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
Currently, we just get the generic error saying the initializer cannot be evaluated to const:
Since defining constants via other constants is a regular practice, I expect having the same approach to configurables can happen although it is a clear logical error.
In general, we want to improve the generic error by pointing to the reason why it cannot be evaluated. This should be the part of the overall improvement in const eval,
const fn
etc.The text was updated successfully, but these errors were encountered: