r259849 - in /trunk/gcc: c/ChangeLog c/c-decl.c...

law@gcc.gnu.org law@gcc.gnu.org
Wed May 2 17:22:00 GMT 2018


Author: law
Date: Wed May  2 17:22:26 2018
New Revision: 259849

URL: https://gcc.gnu.org/viewcvs?rev=259849&root=gcc&view=rev
Log:
	PR c/30552
	* c-decl.c (old_style_parameter_scope): New function.
	* c-parser.c (c_parser_postfix_expression): Check for statement
	expressions in old-style function parameter list declarations.
	* c-parser.h (old_style_parameter_scope): New extern declaration.

	PR c/30552
	* gcc.dg/noncompile/pr30552-1.c: New test.
	* gcc.dg/noncompile/pr30552-2.c: New test.
	* gcc.dg/noncompile/pr30552-3.c: New test.
	* gcc.dg/noncompile/pr30552-4.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/noncompile/pr30552-1.c
    trunk/gcc/testsuite/gcc.dg/noncompile/pr30552-2.c
    trunk/gcc/testsuite/gcc.dg/noncompile/pr30552-3.c
    trunk/gcc/testsuite/gcc.dg/noncompile/pr30552-4.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/c/c-parser.c
    trunk/gcc/c/c-parser.h
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list