Commit 25ec1790 by Eric Botcazou Committed by Eric Botcazou

decl.c (gnat_to_gnu_entity): Do not assert that the type of the parameters isn't…

decl.c (gnat_to_gnu_entity): Do not assert that the type of the parameters isn't dummy in type_annotate_only...

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
	that the type of the parameters isn't dummy in type_annotate_only mode.

From-SVN: r180931
parent a31945d7
2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
that the type of the parameters isn't dummy in type_annotate_only mode.
2011-11-04 Matthew Heaney <heaney@adacore.com> 2011-11-04 Matthew Heaney <heaney@adacore.com>
* a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb], * a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb],
......
...@@ -4185,7 +4185,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) ...@@ -4185,7 +4185,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
/* The failure of this assertion will very likely come from an /* The failure of this assertion will very likely come from an
order of elaboration issue for the type of the parameter. */ order of elaboration issue for the type of the parameter. */
gcc_assert (kind == E_Subprogram_Type gcc_assert (kind == E_Subprogram_Type
|| !TYPE_IS_DUMMY_P (gnu_param_type)); || !TYPE_IS_DUMMY_P (gnu_param_type)
|| type_annotate_only);
if (gnu_param) if (gnu_param)
{ {
......
2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/private1[-sub].ads: New test.
2011-11-04 Mikael Morin <mikael@gcc.gnu.org> 2011-11-04 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/43829 PR fortran/43829
......
-- { dg-do compile }
-- { dg-options "-gnatct" }
package Private1.Sub is
package Nested is
type T is limited private;
function "=" (X, Y : T) return Boolean;
private
type T is new Private1.T;
end Nested;
end Private1.Sub;
package Private1 is
type T is private;
private
type T is new Boolean;
end Private1;
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