From 580fe036c88b0b696a605ba955a271877a28d955 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Thu, 4 Jun 2020 10:13:16 +0200 Subject: [PATCH] [Ada] Mention -gnat2020 in error message gcc/ada/ * sem_ch13.adb (Check_Aspect_Too_Late): Mention -gnat2020 switch in error message. --- gcc/ada/sem_ch13.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index 5937ce2bfe3..62836249e11 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -1034,7 +1034,8 @@ package body Sem_Ch13 is and then Has_Primitive_Operations (Parent_Type) then Error_Msg_N - ("|representation aspect not permitted before Ada 202x!", N); + ("|representation aspect not permitted before Ada 202x: " & + "use -gnat2020!", N); Error_Msg_NE ("\parent type & has primitive operations!", N, Parent_Type); -- 2.30.2