Commit 66f3c0b0 by Vincent Celier Committed by Arnaud Charlet

2008-05-27 Vincent Celier <celier@adacore.com>

	* prj-nmsc.adb:
	(Check_File): Make sure that a unit that replaces the same unit in a
	 project being extended is properly processed.

From-SVN: r136000
parent a494036c
...@@ -8593,13 +8593,21 @@ package body Prj.Nmsc is ...@@ -8593,13 +8593,21 @@ package body Prj.Nmsc is
if Unit /= No_Name if Unit /= No_Name
and then Src_Data.Unit = Unit and then Src_Data.Unit = Unit
and then Src_Data.Kind /= Kind and then
((Src_Data.Kind = Spec and then Kind = Impl)
or else
(Src_Data.Kind = Impl and then Kind = Spec))
then then
Other_Part := Source; Other_Part := Source;
elsif (Unit /= No_Name elsif (Unit /= No_Name
and then Src_Data.Unit = Unit and then Src_Data.Unit = Unit
and then Src_Data.Kind = Kind) and then
(Src_Data.Kind = Kind
or else
(Src_Data.Kind = Sep and then Kind = Impl)
or else
(Src_Data.Kind = Impl and then Kind = Sep)))
or else (Unit = No_Name and then Src_Data.File = File_Name) or else (Unit = No_Name and then Src_Data.File = File_Name)
then then
-- Duplication of file/unit in same project is only -- Duplication of file/unit in same project is only
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment