aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2019-07-08 08:13:04 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-07-08 08:13:04 +0000
commit5291985c00302036cc6d5932fdffb9acab3043cf (patch)
tree5a8235daf9a8a352f258c29c49aa04a99448cb63 /gcc/ada/gcc-interface/trans.c
parentb91cdf756caafddf48433e6f93c4cc0049d292f8 (diff)
downloadgcc-5291985c00302036cc6d5932fdffb9acab3043cf.zip
gcc-5291985c00302036cc6d5932fdffb9acab3043cf.tar.gz
gcc-5291985c00302036cc6d5932fdffb9acab3043cf.tar.bz2
[Ada] Crash on named actual in postcondition for generic subprogram
This patch fixes a crash on compiling the postcondtion for a generic subprogram, when the postcondition is a call with both positional and named parameter associations. 2019-07-08 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * sem_ch13.adb (Analyze_Aspect_Specifications): For a pre/postcondition of a generic subprogram declaration, do not use Relocate_Node on the aspect expression to construct the corresponding attribute specification, to prevent tree anomalies when the expression is a call with named actual parameters. gcc/testsuite/ * gnat.dg/predicate9.adb: New testcase. From-SVN: r273201
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
0 files changed, 0 insertions, 0 deletions