This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30552] gcc crashes when compiling examples with GNU statement expressions in VLAs (also involved: nested functions declared K&R-style)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30552

--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #10)
> 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

So did this fix it?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]