diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-01 11:47:31 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-01 11:47:31 +0100 |
commit | b8ea7696f5e7fee31fb39c13e08a241514caecd4 (patch) | |
tree | b7566e3b35e2fc189b789eaaa17b9127bf584635 /src/errorout.ads | |
parent | 74a34a3d1b0c45c23b988b043061481207d9d9c5 (diff) | |
download | ghdl-b8ea7696f5e7fee31fb39c13e08a241514caecd4.tar.gz ghdl-b8ea7696f5e7fee31fb39c13e08a241514caecd4.tar.bz2 ghdl-b8ea7696f5e7fee31fb39c13e08a241514caecd4.zip |
vhdl: a function call is not an object. Fix #1138.
Report a warning (or an error if not relaxed) when a non-object name
is used for an array attribute.
Also consider subtype attribute as a type name.
Diffstat (limited to 'src/errorout.ads')
-rw-r--r-- | src/errorout.ads | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/errorout.ads b/src/errorout.ads index 0ec341514..763a8344b 100644 --- a/src/errorout.ads +++ b/src/errorout.ads @@ -108,6 +108,9 @@ package Errorout is -- Assertion during analysis. Warnid_Analyze_Assert, + -- Incorrect use of attributes (like non-object prefix). + Warnid_Attribute, + -- Violation of staticness rules Warnid_Static, @@ -298,7 +301,7 @@ private Default_Warnings : constant Warnings_Setting := (Warnid_Library | Warnid_Binding | Warnid_Port | Warnid_Shared | Warnid_Runtime_Error | Warnid_Pure | Warnid_Specs | Warnid_Hide - | Warnid_Pragma | Warnid_Analyze_Assert + | Warnid_Pragma | Warnid_Analyze_Assert | Warnid_Attribute | Msgid_Warning => (Enabled => True, Error => False), others => (Enabled => False, Error => False)); |