This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39564] variably modified function return types not always diagnosed
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2009 18:56:06 -0000
- Subject: [Bug c/39564] variably modified function return types not always diagnosed
- References: <bug-39564-230@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jsm28 at gcc dot gnu dot org 2009-04-25 18:56 -------
Subject: Bug 39564
Author: jsm28
Date: Sat Apr 25 18:55:50 2009
New Revision: 146778
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146778
Log:
PR c/39564
* c-decl.c (grokdeclarator): Diagnose declarations of functions
with variably modified return type and no storage class
specifiers, except for the case of nested functions. Distinguish
extern declarations of functions with variably modified return
types from those of objects with variably modified types.
testsuite:
* gcc.dg/vla-19.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/vla-19.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39564