* [Ada] No crash if a variable Project_Path was defined in a project
@ 2011-10-24 10:36 Arnaud Charlet
0 siblings, 0 replies; only message in thread
From: Arnaud Charlet @ 2011-10-24 10:36 UTC (permalink / raw)
To: gcc-patches; +Cc: Emmanuel Briot
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
This patches fixes a regression introduced when adding support for
aggregate projects. The latter now accept a new list attribute called
Project_Path. But if the user already has a string variable by this name,
the project can no longer be loaded by GNAT. The following project should
be loaded with success:
project Default is
Project_Path := "value";
end Default;
Tested on x86_64-pc-linux-gnu, committed on trunk
2011-10-24 Emmanuel Briot <briot@adacore.com>
* prj-proc.adb (Process_Expression_Variable_Decl): No special
handling for Project_Path unless it is an attribute.
[-- Attachment #2: difs --]
[-- Type: text/plain, Size: 516 bytes --]
Index: prj-proc.adb
===================================================================
--- prj-proc.adb (revision 180365)
+++ prj-proc.adb (working copy)
@@ -2053,7 +2053,7 @@
Shared.Variable_Elements.Table (Var).Value := New_Value;
end if;
- if Name = Snames.Name_Project_Path then
+ if Is_Attribute and then Name = Snames.Name_Project_Path then
if In_Tree.Is_Root_Tree then
declare
Val : String_List_Id := New_Value.Values;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-24 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 10:36 [Ada] No crash if a variable Project_Path was defined in a project Arnaud Charlet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).