This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
It is now allowed to extend a package with the same name from an imported or extended project. The test for this is to invoke gnatmake on project prj.gpr: project Empty is for Source_Files use (); package Compiler is for Switches ("Ada") use ("-O2"); end Compiler; end Empty; with "empty.gpr"; project Prj is for Main use ("main.adb"); package Compiler extends Empty.Compiler is for Switches ("Ada") use Compiler'Switches ("Ada") & ("-g"); end Compiler; end Prj; Sources of project Prj should be compiled with -O2 -g. Tested on x86_64-pc-linux-gnu, committed on trunk 2010-09-10 Vincent Celier <celier@adacore.com> * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend a package with the same name from an imported or extended project. * prj-proc.adb (Process_Declarative_Items): Process package extensions
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |