aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2019-07-22 13:58:09 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-07-22 13:58:09 +0000
commit137dabdd82648ccd5f0adedea2fbb8504f6c7485 (patch)
treec887c30fcdaabe5e2a8c2dee4cc5a8f7bd1c647f /gcc/tree-cfg.c
parent2f8313ce5a14700907822a4f8c0dc18649276136 (diff)
downloadgcc-137dabdd82648ccd5f0adedea2fbb8504f6c7485.zip
gcc-137dabdd82648ccd5f0adedea2fbb8504f6c7485.tar.gz
gcc-137dabdd82648ccd5f0adedea2fbb8504f6c7485.tar.bz2
[Ada] Spurious error passing access to class-wide interface type
The compiler reports an spurious error when the formal parameter of a subprogram is an access to a class wide interface type and the actual parameter is an allocator of an object covering such interface type. 2019-07-22 Javier Miranda <miranda@adacore.com> gcc/ada/ * sem_res.adb (Resolve_Actuals): Replace code that displaces the pointer to an allocated object to reference its secondary dispatch table by a type conversion (which takes care of handling all cases). gcc/testsuite/ * gnat.dg/class_wide5.adb: New testcase. From-SVN: r273690
Diffstat (limited to 'gcc/tree-cfg.c')
0 files changed, 0 insertions, 0 deletions