aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2018-07-17 08:03:49 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-07-17 08:03:49 +0000
commitefa129331c5ceb9937c990f45f3bfd447cbe290e (patch)
treefb1825688c2011f39a4dc73eb1dae94e9810d05c /gcc/builtins.c
parent6a4f3b312e2aa6016963a6befc986b93465be968 (diff)
downloadgcc-efa129331c5ceb9937c990f45f3bfd447cbe290e.zip
gcc-efa129331c5ceb9937c990f45f3bfd447cbe290e.tar.gz
gcc-efa129331c5ceb9937c990f45f3bfd447cbe290e.tar.bz2
[Ada] Fix handling of inherited discriminant constraints
2018-07-17 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * sem_util.adb (Gather_Components): A discriminant of an ancestor may have been constrained by a later ancestor, so when looking for the value of that hidden discriminant we must examine the stored constraint of other ancestors than the immediate parent type. gcc/testsuite/ * gnat.dg/discr54.adb, gnat.dg/discr54_pkg.ads: New testcase. From-SVN: r262767
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions