Skip to content
Snippets Groups Projects
  • Steve Baird's avatar
    480819c9
    ada: Etype missing for raise expression · 480819c9
    Steve Baird authored
    If the primitive equality operator of the component type of an array type is
    abstract, then a call to that abstract function raises Program_Error (when
    such a call is legal). The FE generates a raise expression to implement this.
    That raise expression is an expression so it should have a valid Etype.
    
    gcc/ada/
    
    	* exp_ch4.adb (Build_Eq_Call): In the abstract callee case, copy
    	the Etype of the callee onto the Make_Raise_Program_Error result.
    480819c9
    History
    ada: Etype missing for raise expression
    Steve Baird authored
    If the primitive equality operator of the component type of an array type is
    abstract, then a call to that abstract function raises Program_Error (when
    such a call is legal). The FE generates a raise expression to implement this.
    That raise expression is an expression so it should have a valid Etype.
    
    gcc/ada/
    
    	* exp_ch4.adb (Build_Eq_Call): In the abstract callee case, copy
    	the Etype of the callee onto the Make_Raise_Program_Error result.