PR c/18322
* c-common.c (fname_decl): Don't use line number of decl in
diagnostic.
testsuite:
* gcc.dg/func-outside-1.c, gcc.dg/func-outside-2.c: New tests.
From-SVN: r90448
+2004-11-10 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR c/18322
+ * c-common.c (fname_decl): Don't use line number of decl in
+ diagnostic.
+
2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sparc.c (function_arg_union_value): New 'slotno'
input_line = saved_lineno;
}
if (!ix && !current_function_decl)
- pedwarn ("%J'%D' is not defined outside of function scope", decl, decl);
+ pedwarn ("'%D' is not defined outside of function scope", decl);
return decl;
}
+2004-11-10 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR c/18322
+ * gcc.dg/func-outside-1.c, gcc.dg/func-outside-2.c: Correct
+ expected diagnostic location.
+
2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/union-2.c: New test.