Skip to content
Snippets Groups Projects
Commit 90b3826d authored by Javier Miranda's avatar Javier Miranda Committed by Marc Poulhiès
Browse files

ada: Finalization_Size raises Constraint_Error

When the attribute Finalization_Size is applied to an interface type
object, the compiler-generated code fails at runtime, raising a
Constraint_Error exception.

gcc/ada/

	* exp_attr.adb (Expand_N_Attribute_Reference) <Finalization_Size>:
	If the prefix is an interface type, generate code to obtain its
	address and displace it to reference the base of the object.
parent 33aca37e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment