This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30552] gcc crashes when compiling examples with GNU statement expressions in VLAs (also involved: nested functions declared K&R-style)
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Aug 2018 01:37:57 +0000
- Subject: [Bug c/30552] gcc crashes when compiling examples with GNU statement expressions in VLAs (also involved: nested functions declared K&R-style)
- Auto-submitted: auto-generated
- References: <bug-30552-4@http.gcc.gnu.org/bugzilla/>
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?