[Ada] Constraint_Error on spurious ambiguity in instance

2016-04-20 Thread Arnaud Charlet
This patch updates the instantiation machinery to properly preserve a reference to a global type in a qualified expression used to convert a universal literal to a specific type, and propagate it to the instantiated template. -- Source -- -- types.ads package Types is

[Ada] Constraint_Error on spurious ambiguity in instance

2016-04-20 Thread Arnaud Charlet
This match modifies the processing of generics to aid overload resolution of binary and unary operators in instances. This is achieved by installing type conversions in the form of qualified expressions for each operand that yields a universal type. -- Source -- -- px.a