exp_ch4.adb (Expand_Composite_Equality): If a component is an unchecked union with...
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 10 Feb 2005 13:54:15 +0000 (14:54 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 10 Feb 2005 13:54:15 +0000 (14:54 +0100)
commit8aceda6473a81be00de01313a0b7594b438cb17f
tree96296fb7c3c197b7499a99d51ec3dcd9936c69d5
parent3cf3e5c6a2dcd0233ee237f291fdf9ac25052dd5
exp_ch4.adb (Expand_Composite_Equality): If a component is an unchecked union with no inferable discriminants...

* exp_ch4.adb (Expand_Composite_Equality): If a component is an
unchecked union with no inferable discriminants, return a
Raise_Program_Error node, rather than inserting it at the point the
type is frozen.
(Expand_Record_Equality, Component_Equality): Handle properly the case
where some subcomponent is an unchecked union whose generated equality
code raises program error.

From-SVN: r94814
gcc/ada/exp_ch4.adb