OSDN Git Service

PR c/43381
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 23:52:09 +0000 (23:52 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:14:59 +0000 (14:14 +0900)
* 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/testsuite/ChangeLog

index dd82a01..fdc5e1f 100644 (file)
@@ -1,3 +1,11 @@
+2010-03-26  Joseph Myers  <joseph@codesourcery.com>
+
+       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.
+
 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
 
        * var-tracking.c (vt_expand_loc_callback): Don't run
index 99907ee..b8f06fe 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-26  Joseph Myers  <joseph@codesourcery.com>
+
+       PR c/43381
+       * gcc.dg/parm-impl-decl-3.c: New test.
+
 2010-03-26  Jason Merrill  <jason@redhat.com>
 
        PR c++/43509