OSDN Git Service

PR c/43381
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 23:52:09 +0000 (23:52 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 23:52:09 +0000 (23:52 +0000)
commit1799fbab6a341bb44efe74b182c3e42e71d1ffd7
tree8dd23f7d006e9f449c212ce5cea214baccf360b6
parente221246baf59019a4a64f1ad8a1c75c5aa9cc0bd
PR c/43381
* c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
nested binding iff it is a FUNCTION_DECL.
(store_parm_decls_newstyle): Pass nested=true to bind for
FUNCTION_DECLs amongst parameters.

testsuite:
* gcc.dg/parm-impl-decl-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157766 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/parm-impl-decl-3.c [new file with mode: 0644]