]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/ChangeLog
decl.c (gnat_to_gnu_entity): Do not convert the expression to the nominal type if...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 30 Aug 2011 16:15:49 +0000 (16:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 30 Aug 2011 16:15:49 +0000 (16:15 +0000)
commit10a22f4330b9f0e5be5f36690617d6094024c290
tree3ce1830194439c491707cf0d2a98eedb5004514c
parentb6717379621288e10cbb2bb6b440947adcabd9cb
decl.c (gnat_to_gnu_entity): Do not convert the expression to the nominal type if...

* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
the expression to the nominal type if the latter is a record type with
a variant part and the type of the former is a record type without one.

Co-Authored-By: Laurent Rougé <laurent.rouge@menta.fr>
From-SVN: r178331
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/aggr1.ads
gcc/testsuite/gnat.dg/specs/aggr2.ads
gcc/testsuite/gnat.dg/specs/aggr3.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/aggr3_pkg.ads [new file with mode: 0644]
This page took 0.063055 seconds and 5 git commands to generate.