prj-nmsc.adb (Check_File): An excluded Ada source file may be a source of another...
authorVincent Celier <celier@adacore.com>
Wed, 20 Aug 2008 14:28:36 +0000 (16:28 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 20 Aug 2008 14:28:36 +0000 (16:28 +0200)
2008-08-20  Vincent Celier  <celier@adacore.com>

* prj-nmsc.adb (Check_File): An excluded Ada source file may be a
source of another project.

From-SVN: r139309

gcc/ada/prj-nmsc.adb

index 6f18c81034df798a6ae699355052770142b439c1..cf0f4725084b0ce5d35787725d3a2f1e34fba8ae 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,