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:
3323aa7
)
[Ada] Crash on renaming within declare expression
author
Justin Squirek
<squirek@adacore.com>
Thu, 12 Aug 2021 12:54:15 +0000
(08:54 -0400)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Fri, 1 Oct 2021 06:13:38 +0000
(06:13 +0000)
gcc/ada/
* exp_dbug.adb (Debug_Renaming_Declaration): Add check for
Entity present for Ren to prevent looking at unanalyzed nodes
gcc/ada/exp_dbug.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/exp_dbug.adb
b/gcc/ada/exp_dbug.adb
index
a375169
..
96d78cc
100644
(file)
--- a/
gcc/ada/exp_dbug.adb
+++ b/
gcc/ada/exp_dbug.adb
@@
-409,7
+409,9
@@
package body Exp_Dbug is
when N_Expanded_Name
| N_Identifier
=>
- if not Present (Renamed_Object (Entity (Ren))) then
+ if No (Entity (Ren))
+ or else not Present (Renamed_Object (Entity (Ren)))
+ then
exit;
end if;