projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c4f326
)
[Ada] Fix crash when printing error message
author
Justin Squirek
<squirek@adacore.com>
Thu, 8 Apr 2021 08:44:19 +0000
(10:44 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Mon, 5 Jul 2021 13:09:09 +0000
(13:09 +0000)
gcc/ada/
* freeze.adb (Freeze_Profile): Use N's Sloc, F_type's chars.
gcc/ada/freeze.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/freeze.adb
b/gcc/ada/freeze.adb
index 23b64a0034d0f2f3768e2093815fb2a25414b461..21d24cd5eba2be4d8ffc09fad60d3644ce185452 100644
(file)
--- a/
gcc/ada/freeze.adb
+++ b/
gcc/ada/freeze.adb
@@
-4141,9
+4141,10
@@
package body Freeze is
elsif not After_Last_Declaration
and then not Freezing_Library_Level_Tagged_Type
then
- Error_Msg_Node_1 := F_Type;
- Error_Msg_N
- ("type & must be fully defined before this point", N);
+ Error_Msg_NE
+ ("type & must be fully defined before this point",
+ N,
+ F_Type);
end if;
end if;