r256511 - in /trunk/gcc: ada/ChangeLog ada/par-...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Thu Jan 11 08:53:00 GMT 2018


Author: pmderodat
Date: Thu Jan 11 08:53:48 2018
New Revision: 256511

URL: https://gcc.gnu.org/viewcvs?rev=256511&root=gcc&view=rev
Log:
[Ada] Null procedures not allowed in protected definitions

The syntax rules do not allow null procedures in protected definitions. This
patch fixes a bug that accidentally allowed them.

2018-01-11  Bob Duff  <duff@adacore.com>

gcc/ada/

	* par-ch9.adb (P_Protected_Operation_Declaration_Opt): Give an error if
	a null procedure occurs in a protected definition.

gcc/testsuite/

	* gnat.dg/protected_null.adb: New testcase.

Added:
    trunk/gcc/testsuite/gnat.dg/protected_null.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/par-ch9.adb
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list