From 47e2a9a05c3aabb01ac77518ad407d3400cccc1d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 14 Oct 2022 21:38:42 +0200 Subject: vhdl-parse.adb: handle external names as assignment target. Fix #2219 --- src/vhdl/vhdl-parse.adb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/vhdl/vhdl-parse.adb') 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 -- cgit v1.2.3