multiple declaration of types / constants
PROBLEM: two different packages with the same type / constant definition:
package PACK1 is type TYPE_ABC is ....; constant CONST_XYZ : ....; .... end package PACK1; package PACK2 is type TYPE_ABC is ....; constant CONST_XYZ : ....; .... end package PACK2;
In another file, both of the packages are used. When defining a signal with the type TYPE_ABC or refering to CONST_XYZ there is an error note that the type / constant could not be found.
There should be an error note that there is a multiple declaration of the type / constant
- Forums:
multiple declaration of types / constants
The error is indeed not entirely clear. I think we should give a warning at the use clause that the declaration of
ais not visible.Logged as ticket:813
Fixed
ticket:813 has been fixed in the latest release. The VHDL editor view now gives much better warnings and error messages when multiple declarations with the same name are used and become invisible.
Post new comment