decl.c (build_subst_list): Convert the expression of the constraint to the type of...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 21 Oct 2009 10:20:06 +0000 (10:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 21 Oct 2009 10:20:06 +0000 (10:20 +0000)
commit3c28a5f48c173ca546369b2434c0701009320569
tree6335004f876cd0c17ec3b49656a9db78f4e4860f
parent9a1c0fd9f2a59bbbfb4801064bf7cad898389e70
decl.c (build_subst_list): Convert the expression of the constraint to the type of the discriminant.

* gcc-interfaces/decl.c (build_subst_list): Convert the expression of
the constraint to the type of the discriminant.

From-SVN: r153054
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/discr22.adb [new file with mode: 0644]