r263101 - in /trunk/gcc: ada/ChangeLog ada/exp_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Tue Jul 31 09:56:00 GMT 2018
Author: pmderodat
Date: Tue Jul 31 09:56:21 2018
New Revision: 263101
URL: https://gcc.gnu.org/viewcvs?rev=263101&root=gcc&view=rev
Log:
[Ada] Spurious error on default parameter in protected operation
This patch fixes a spurious compiler error on a call to a protected
operation whose profile includes a defaulted in-parameter that is a call
to another protected function of the same object.
2018-07-31 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* exp_ch6.adb (Expand_Protected_Subprogram_Call): Handle
properly a protected call that includes a default parameter that
is a call to a protected function of the same type.
gcc/testsuite/
* gnat.dg/prot5.adb, gnat.dg/prot5_pkg.adb,
gnat.dg/prot5_pkg.ads: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/prot5.adb
trunk/gcc/testsuite/gnat.dg/prot5_pkg.adb
trunk/gcc/testsuite/gnat.dg/prot5_pkg.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch6.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list