OSDN Git Service

* a-assert.ads: Remove execute permission.
[pf3gnuchains/gcc-fork.git] / gcc / c-decl.c
index 93fb16d..de46578 100644 (file)
@@ -7702,7 +7702,8 @@ start_function (struct c_declspecs *declspecs, struct c_declarator *declarator,
 
   /* If the declarator is not suitable for a function definition,
      cause a syntax error.  */
-  if (decl1 == 0)
+  if (decl1 == 0
+      || TREE_CODE (decl1) != FUNCTION_DECL)
     return 0;
 
   loc = DECL_SOURCE_LOCATION (decl1);