From: Ed Schonberg Date: Thu, 20 Nov 2014 11:49:43 +0000 (+0000) Subject: sem_ch6.adb: Improve better error message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc5e261c09a9c3938baa1fdb93361f29e17ff40a;p=gcc.git sem_ch6.adb: Improve better error message. 2014-11-20 Ed Schonberg * sem_ch6.adb: Improve better error message. From-SVN: r217847 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index c01298c750e..a86d9ef99f4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2014-11-20 Ed Schonberg + + * sem_ch6.adb: Improve better error message. + 2014-11-20 Thomas Quinot * freeze.adb, sem_ch13.adb: Minor editing. diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb index 5a5265c2778..1fcde26714a 100644 --- a/gcc/ada/sem_ch6.adb +++ b/gcc/ada/sem_ch6.adb @@ -334,7 +334,8 @@ package body Sem_Ch6 is and then Nkind (Original_Node (Unit_Declaration_Node (Prev))) = N_Expression_Function then - Error_Msg_N ("Duplicate expression function", N); + Error_Msg_Sloc := Sloc (Prev); + Error_Msg_N ("& conflicts with declaration#", Def_Id); return; end if; end if;