aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2023-08-15 12:57:10 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-09-05 13:05:14 +0200
commit67138e097ee2af4633fbf904f4251dda5589fc6f (patch)
treec528bd59dc7802007a7f98f636139e23acfa6ced /gcc/c
parent9fc6f15bfe7ebfeef6ebbea48b2c551f79cd25bd (diff)
downloadgcc-67138e097ee2af4633fbf904f4251dda5589fc6f.zip
gcc-67138e097ee2af4633fbf904f4251dda5589fc6f.tar.gz
gcc-67138e097ee2af4633fbf904f4251dda5589fc6f.tar.bz2
ada: Crash on function returning empty Ada 2022 aggregate
The compiler crashes processing a function that returns an empty aggregate when its returned type is a record type which defined its container aggregate aspects. gcc/ada/ * exp_aggr.adb (Expand_Container_Aggregate): Report warning on infinite recursion if an empty container aggregate appears in the return statement of its Empty function. Fix typo in comment. * sem_aggr.adb (Resolve_Aggregate): Resolve Ada 2022 empty aggregate that initializes a record type that has defined its container aggregate aspects. (Resolve_Iterated_Association): Protect access to attribute Etype. * sem_ch13.adb (Resolve_Aspect_Aggregate): Fix typo in comment.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions