* tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
From-SVN: r136154
+2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
+
+ * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
+
2008-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36343
+2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.dg/nested-func-6.c: New test.
+
2008-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36343
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -Winline" } */
+
+static inline int foo1 (int a)
+{ /* { dg-bogus "function not inlinable" } */
+ void bar1 (int b)
+ {}
+ return a;
+}
+
+int foo2 (int a)
+{
+ return foo1 (a);
+}
for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested)
{
for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg))
- if (variably_modified_type_p (TREE_TYPE (arg), 0), orig_fndecl)
+ if (variably_modified_type_p (TREE_TYPE (arg), orig_fndecl))
return true;
if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl))