OSDN Git Service

2007-01-05 Paul Thomas <pault@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / scan-decls.c
index 86fd404..d7b592b 100644 (file)
@@ -202,6 +202,8 @@ scan_decls (cpp_reader *pfile, int argc ATTRIBUTE_UNUSED,
                 parameter list */
              while (token->type != CPP_SEMICOLON && token->type != CPP_EOF)
                token = get_a_token (pfile);
+             if (token->type == CPP_EOF)
+               return 0;
              goto new_statement;
            }
          break;