aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2018-09-26 09:20:05 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-09-26 09:20:05 +0000
commitdef15641da84fb82adfeb946c6d714683148e6e3 (patch)
tree03afa6c40302957d55a36ab4791afc3234c1e4ef /gcc/c/c-parser.c
parent0ebf09ed046391377af708ab2471403d3affdddd (diff)
downloadgcc-def15641da84fb82adfeb946c6d714683148e6e3.zip
gcc-def15641da84fb82adfeb946c6d714683148e6e3.tar.gz
gcc-def15641da84fb82adfeb946c6d714683148e6e3.tar.bz2
[Ada] Fix inheritance of representation items defined as aspects
When a representation item is defined by a pragma or attribute definition clause, the entity it applies to is that of the Name of the representation item. But when it is defined by an aspect definition, the entity is directly denoted by the Entity attribute of the represenation item. The circuitry that inherits representation items for derived types or subtypes must account for these two possible cases. 2018-09-26 Thomas Quinot <quinot@adacore.com> gcc/ada/ * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a representation item that is an N_Aspect_Definition, retrieve the entity it applies to using the Entity attribute. gcc/testsuite/ * gnat.dg/sso13.adb: New testcase. From-SVN: r264636
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions