------- Comment #3 from zsojka at seznam dot cz 2010-03-24 13:49 ------- Created an attachment (id=20184) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20184&action=view) another similiar testcase
3.3.6 gives: $ gcc-3.3.6 pr43384-3.c pr43384-3.c: In function `foo': pr43384-3.c:2: error: parameter `j' is initialized pr43384-3.c:2: error: `i' undeclared (first use in this function) pr43384-3.c:2: error: (Each undeclared identifier is reported only once pr43384-3.c:2: error: for each function it appears in.) pr43384-3.c:2: error: declaration for parameter `j' but no such parameter 3.4.6 and newer without checking: $ gcc-3.4.6 pr43384-3.c pr43384-3.c: In function `foo': pr43384-3.c:2: error: parameter `j' is initialized pr43384-3.c:2: error: `i' undeclared (first use in this function) pr43384-3.c:2: error: (Each undeclared identifier is reported only once pr43384-3.c:2: error: for each function it appears in.) pr43384-3.c:2: confused by earlier errors, bailing out trunk with checking: $ /mnt/svn/gcc-trunk/binary-157675-lto/bin/gcc pr43384-3.c pr43384-3.c: In function 'foo': pr43384-3.c:2:1: error: parameter 'j' is initialized pr43384-3.c:2:9: error: 'i' undeclared (first use in this function) pr43384-3.c:2:9: note: each undeclared identifier is reported only once for each function it appears in pr43384-3.c:3:1: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in store_parm_decls_oldstyle, at c-decl.c:7670 4.4 with checking: $ /mnt/svn/gcc-4_4/binary-157395-enable-checking/bin/gcc pr43384-3.c pr43384-3.c: In function 'foo': pr43384-3.c:2: error: parameter 'j' is initialized pr43384-3.c:2: error: 'i' undeclared (first use in this function) pr43384-3.c:2: error: (Each undeclared identifier is reported only once pr43384-3.c:2: error: for each function it appears in.) ' tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in c_tree_printer, at c-objc-common.c:109 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384