2008-08-20 Vincent Celier <celier@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 14:28:36 +0000 (14:28 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 14:28:36 +0000 (14:28 +0000)
* prj-nmsc.adb (Check_File): An excluded Ada source file may be a
source of another project.

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

gcc/ada/prj-nmsc.adb

index 6f18c81..cf0f472 100644 (file)
@@ -8163,7 +8163,9 @@ package body Prj.Nmsc is
                   then
                      Source_To_Replace := Source;
 
-                  elsif Unit /= No_Name then
+                  elsif Unit /= No_Name
+                    and then not Src_Data.Locally_Removed
+                  then
                      Error_Msg_Name_1 := Unit;
                      Error_Msg
                        (Project, In_Tree,