[Ada] Avoid repeated analysis of constraint ranges

Pierre-Marie de Rodat derodat@adacore.com
Thu May 6 07:58:12 GMT 2021


Don't call Analyse just before Process_Range_Expr_In_Decl, because the
latter starts with a call to Analyze_And_Resolve anyway.

This fixes a violation with the required sequencing in resolution of
overloaded nodes that requires the Etype being Any_Type and
Is_Overloading being False before calling Add_One_Interp for multiple
interpretations.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* sem_ch3.adb (Constraint_Index): Remove redundant problematic
	analysis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 363 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210506/5e1a147a/attachment.bin>


More information about the Gcc-patches mailing list