aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-10-14 21:38:42 +0200
committerTristan Gingold <tgingold@free.fr>2022-10-14 21:38:42 +0200
commit47e2a9a05c3aabb01ac77518ad407d3400cccc1d (patch)
tree2ee71e1909770208add590f58a568f2f8dfe32d6
parenta825e81ef70b0594dce00f08b573549e02a16932 (diff)
downloadghdl-47e2a9a05c3aabb01ac77518ad407d3400cccc1d.tar.gz
ghdl-47e2a9a05c3aabb01ac77518ad407d3400cccc1d.tar.bz2
ghdl-47e2a9a05c3aabb01ac77518ad407d3400cccc1d.zip
vhdl-parse.adb: handle external names as assignment target.
Fix #2219
-rw-r--r--src/vhdl/vhdl-parse.adb6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb
index 310922f19..929f47b61 100644
--- a/src/vhdl/vhdl-parse.adb
+++ b/src/vhdl/vhdl-parse.adb
@@ -8078,7 +8078,8 @@ package body Vhdl.Parse is
when Tok_Case =>
Stmt := Parse_Case_Statement (Label);
when Tok_Identifier
- | Tok_String =>
+ | Tok_String
+ | Tok_Double_Less =>
-- String for an expanded name with operator_symbol prefix.
Stmt := Parse_Sequential_Assignment_Statement (Parse_Name);
when Tok_Left_Paren =>
@@ -10253,7 +10254,8 @@ package body Vhdl.Parse is
Error_Msg_Parse ("label is not allowed here");
end if;
return Null_Iir;
- when Tok_Identifier =>
+ when Tok_Identifier
+ | Tok_Double_Less =>
Target := Parse_Name (Allow_Indexes => True);
Stmt := Parse_Concurrent_Assignment (Target);
if Get_Kind (Stmt) = Iir_Kind_Component_Instantiation_Statement