Commit 46ee0270 by Arnaud Charlet

[multiple changes]

2015-10-20  Vincent Celier  <celier@adacore.com>

	* sem_cat.adb (Check_Categorization_Dependencies): Do nothing
	when -gnatdu is specified.

2015-10-20  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch8.adb (analyze_Subprogram_Renaming): The actual for a
	formal abstract subprogram must have a controlling type.
	* stand.ads: Minor whitespace cleanup.

From-SVN: r229035
parent 47b79f78
2015-10-20 Vincent Celier <celier@adacore.com>
* sem_cat.adb (Check_Categorization_Dependencies): Do nothing
when -gnatdu is specified.
2015-10-20 Ed Schonberg <schonberg@adacore.com>
* sem_ch8.adb (analyze_Subprogram_Renaming): The actual for a
formal abstract subprogram must have a controlling type.
* stand.ads: Minor whitespace cleanup.
2015-10-20 Gary Dismukes <dismukes@adacore.com> 2015-10-20 Gary Dismukes <dismukes@adacore.com>
* sem_ch13.adb: Minor reference change (RM => AARM). * sem_ch13.adb: Minor reference change (RM => AARM).
......
...@@ -185,9 +185,10 @@ package body Sem_Cat is ...@@ -185,9 +185,10 @@ package body Sem_Cat is
begin begin
-- Intrinsic subprograms are preelaborated, so do not impose any -- Intrinsic subprograms are preelaborated, so do not impose any
-- categorization dependencies. -- categorization dependencies. Also, ignore categorization
-- dependencies when compilation switch -gnatdu is used.
if Is_Intrinsic_Subprogram (Depended_Entity) then if Is_Intrinsic_Subprogram (Depended_Entity) or else Debug_Flag_U then
return; return;
end if; end if;
......
...@@ -3221,7 +3221,13 @@ package body Sem_Ch8 is ...@@ -3221,7 +3221,13 @@ package body Sem_Ch8 is
Find_Dispatching_Type (Old_S); Find_Dispatching_Type (Old_S);
begin begin
if Old_S_Ctrl_Type /= New_S_Ctrl_Type then
-- The actual must match the (instance of the) formal,
-- and must be a controlling type.
if Old_S_Ctrl_Type /= New_S_Ctrl_Type
or else No (New_S_Ctrl_Type)
then
Error_Msg_NE Error_Msg_NE
("actual must be dispatching subprogram for type&", ("actual must be dispatching subprogram for type&",
Nam, New_S_Ctrl_Type); Nam, New_S_Ctrl_Type);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1992-2014, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
......
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