]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-11-20 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2014 11:49:43 +0000 (11:49 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2014 11:49:43 +0000 (11:49 +0000)
* sem_ch6.adb: Improve better error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217847 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/sem_ch6.adb

index c01298c750edf98d5c417eb343aa11959731a5fb..a86d9ef99f43185b6bd93925b27f0fb21447059e 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-20  Ed Schonberg  <schonberg@adacore.com>
+
+       * sem_ch6.adb: Improve better error message.
+
 2014-11-20  Thomas Quinot  <quinot@adacore.com>
 
        * freeze.adb, sem_ch13.adb: Minor editing.
index 5a5265c2778e116c9aae1b5506c331e40e4412f9..1fcde26714a7e88ae837b404cdf5e09dd15c3b63 100644 (file)
@@ -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;