Commit 42481458 by Hristian Kirtchev Committed by Arnaud Charlet

sem_prag.adb (Is_Matching_Input): Consume a matching null input.

2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>

	* sem_prag.adb (Is_Matching_Input): Consume a matching null input.

From-SVN: r203557
parent d12b19fa
2013-10-14 Hristian Kirtchev <kirtchev@adacore.com>
* sem_prag.adb (Is_Matching_Input): Consume a matching null input.
2013-10-14 Robert Dewar <dewar@adacore.com> 2013-10-14 Robert Dewar <dewar@adacore.com>
* freeze.adb (Freeze_Record): Don't give warning about packed * freeze.adb (Freeze_Record): Don't give warning about packed
......
...@@ -19965,7 +19965,13 @@ package body Sem_Prag is ...@@ -19965,7 +19965,13 @@ package body Sem_Prag is
-- Match a null input with another null input -- Match a null input with another null input
if Nkind (Dep_Input) = N_Null then if Nkind (Dep_Input) = N_Null then
if Nkind (Expression (Ref_Clause)) = N_Null then Ref_Input := First (Ref_Inputs);
-- Remove the matching null from the pool of candidates
if Nkind (Ref_Input) = N_Null then
Remove (Ref_Input);
return True; return True;
else else
Match_Error Match_Error
......
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