]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/28299 (ICE with -Wmissing-prototypes)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 26 Aug 2006 00:22:23 +0000 (01:22 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 26 Aug 2006 00:22:23 +0000 (01:22 +0100)
commit1f2d863f329824fff66fa67794915087ee7b3a4a
tree9e3bbd7116e7e42dd66787b413a73434f914983d
parentdc882c6a7c32e75c55d469d4ad12bc73d1effecf
re PR c/28299 (ICE with -Wmissing-prototypes)

PR c/28299
* c-decl.c (start_function): Don't try to process prototype
information from old declaration that isn't a function.

testsuite:
* gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
* gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
Expect extra diagnostics.

From-SVN: r116459
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/funcdef-var-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/funcdef-var-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20368-1.c
gcc/testsuite/gcc.dg/pr20368-2.c
gcc/testsuite/gcc.dg/pr20368-3.c