aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_names.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-sem_names.adb')
-rw-r--r--src/vhdl/vhdl-sem_names.adb19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index ac3ec321a..32195d92f 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -62,7 +62,8 @@ package body Vhdl.Sem_Names is
El : Iir;
It : List_Iterator;
begin
- Error_Msg_Sem (+Loc, "possible interpretations are:", Cont => True);
+ Report_Start_Group;
+ Error_Msg_Sem (+Loc, "possible interpretations are:");
It := List_Iterate (List);
while Is_Valid (It) loop
El := Get_Element (It);
@@ -78,6 +79,7 @@ package body Vhdl.Sem_Names is
end case;
Next (It);
end loop;
+ Report_End_Group;
end Disp_Overload_List;
-- Create an overload list.
@@ -3014,12 +3016,13 @@ package body Vhdl.Sem_Names is
if Get_Kind (Prefix_Type)
not in Iir_Kinds_Scalar_Type_And_Subtype_Definition
then
+ Report_Start_Group;
Error_Msg_Sem
- (+Attr, "prefix of %i attribute must be a scalar type",
- (1 => +Id), Cont => True);
+ (+Attr, "prefix of %i attribute must be a scalar type", +Id);
Error_Msg_Sem
(+Attr, "found %n defined at %l",
(+Prefix_Type, +Prefix_Type));
+ Report_End_Group;
return Error_Mark;
end if;
when others =>
@@ -3029,13 +3032,14 @@ package body Vhdl.Sem_Names is
| Iir_Kind_Physical_Type_Definition =>
null;
when others =>
+ Report_Start_Group;
Error_Msg_Sem
(+Attr, "prefix of %i"
- & " attribute must be discrete or physical type",
- (1 => +Id), Cont => True);
+ & " attribute must be discrete or physical type", +Id);
Error_Msg_Sem
(+Attr, "found %n defined at %l",
(+Prefix_Type, +Prefix_Type));
+ Report_End_Group;
return Error_Mark;
end case;
end case;
@@ -4187,11 +4191,12 @@ package body Vhdl.Sem_Names is
when Iir_Kind_Error =>
return Atype;
when others =>
+ Report_Start_Group;
Error_Msg_Sem
- (+Name, "a type mark must denote a type or a subtype",
- Cont => True);
+ (+Name, "a type mark must denote a type or a subtype");
Error_Msg_Sem
(+Name, "(type mark denotes %n)", +Atype);
+ Report_End_Group;
return Create_Error_Type (Atype);
end case;
when Iir_Kind_Subtype_Attribute