diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-06-02 20:42:51 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-06-02 20:42:51 +0200 |
commit | 0a1113743c62e55386837f872b2e0c4ccfb9afb9 (patch) | |
tree | 7e17e75d4c208b19d155a019538f0d44973bd2ec /src/vhdl/translate/trans-chap2.adb | |
parent | 3e6affe81ae722794a3d74e0a480c7d9dacdf406 (diff) | |
download | ghdl-0a1113743c62e55386837f872b2e0c4ccfb9afb9.tar.gz ghdl-0a1113743c62e55386837f872b2e0c4ccfb9afb9.tar.bz2 ghdl-0a1113743c62e55386837f872b2e0c4ccfb9afb9.zip |
Fix translation of protected types declared in subprograms.
Fix ticket 86.
Diffstat (limited to 'src/vhdl/translate/trans-chap2.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap2.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap2.adb b/src/vhdl/translate/trans-chap2.adb index 69ec3e547..e0c19c606 100644 --- a/src/vhdl/translate/trans-chap2.adb +++ b/src/vhdl/translate/trans-chap2.adb @@ -343,7 +343,8 @@ package body Trans.Chap2 is when Iir_Kind_File_Type_Definition => return True; when Iir_Kind_Protected_Type_Declaration => - raise Internal_Error; + -- We suppose there is at least one method. + return True; when Iir_Kinds_Composite_Type_Definition => -- At least for "=". return True; |