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] |
For associative array attributes where 'others' is allowed as the index (such as Builder'Switches), an attribute reference with 'others' was not recognized. This patch corrects this. The test for this is to build the project prj.gpr below: project Shared is for Source_Files use (); package Builder is for Switches (others) use ("-q"); end Builder; end Shared; with "shared.gpr"; project Prj is for Main use ("main.adb"); package Builder is for Switches (others) use Shared.Builder'Switches (others); end Builder; end Prj; Tested on x86_64-pc-linux-gnu, committed on trunk 2010-08-10 Vincent Celier <celier@adacore.com> * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names, returns Index. * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid index for an associative array where it is allowed.
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] |