diff options
Diffstat (limited to 'gcc/ada/lib-writ.adb')
-rw-r--r-- | gcc/ada/lib-writ.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/lib-writ.adb b/gcc/ada/lib-writ.adb index bd0ae5c..06cd956 100644 --- a/gcc/ada/lib-writ.adb +++ b/gcc/ada/lib-writ.adb @@ -44,6 +44,7 @@ with Par_SCO; use Par_SCO; with Restrict; use Restrict; with Rident; use Rident; with Scn; use Scn; +with Sem_Eval; use Sem_Eval; with Sinfo; use Sinfo; with Sinput; use Sinput; with Snames; use Snames; @@ -697,12 +698,12 @@ package body Lib.Writ is Write_Info_Name (Chars (Expr)); elsif Nkind (Expr) = N_Integer_Literal - and then Is_Static_Expression (Expr) + and then Is_OK_Static_Expression (Expr) then Write_Info_Uint (Intval (Expr)); elsif Nkind (Expr) = N_String_Literal - and then Is_Static_Expression (Expr) + and then Is_OK_Static_Expression (Expr) then Write_Info_Slit (Strval (Expr)); |