public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2010] [Ada] Fix crash when printing error message
@ 2021-07-05 13:13 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-05 13:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b9713be32ba408b1d8002d92c589c6c3ed8f8831
commit r12-2010-gb9713be32ba408b1d8002d92c589c6c3ed8f8831
Author: Justin Squirek <squirek@adacore.com>
Date: Thu Apr 8 10:44:19 2021 +0200
[Ada] Fix crash when printing error message
gcc/ada/
* freeze.adb (Freeze_Profile): Use N's Sloc, F_type's chars.
Diff:
---
gcc/ada/freeze.adb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb
index 23b64a0034d..21d24cd5eba 100644
--- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-05 13:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 13:13 [gcc r12-2010] [Ada] Fix crash when printing error message Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).