When a case variable is declared in another imported project and its
project is itself extended, the Project Manager is confused and may
crash or report incorrect errors.

Tested on x86_64-pc-linux-gnu, committed on trunk

2014-10-30  Vincent Celier  <cel...@adacore.com>

        * prj-proc.adb (Process_Case_Construction): Do not look for
        the ultimate extending project for a case variable.

Index: prj-proc.adb
===================================================================
--- prj-proc.adb        (revision 216770)
+++ prj-proc.adb        (working copy)
@@ -2308,7 +2308,9 @@
                  Name_Of
                    (Project_Node_Of (Variable_Node, Node_Tree), Node_Tree);
                The_Project :=
-                 Imported_Or_Extended_Project_From (Project, Name);
+                 Imported_Or_Extended_Project_From
+                   (Project, Name, No_Extending => True);
+               The_Package := No_Package;
             end if;
 
             --  If a package was specified for the case variable, get its id

Reply via email to