+2010-02-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/43033
+ * name-lookup.c (pushdecl_maybe_friend): Check default args of t
+ instead of x.
+
2010-02-10 Jason Merrill <jason@redhat.com>
PR c++/41896
/* Definitions for C++ name lookup routines.
- Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
add_decl_to_level (x, NAMESPACE_LEVEL (CP_DECL_CONTEXT (t)));
}
- if (TREE_CODE (x) == FUNCTION_DECL || DECL_FUNCTION_TEMPLATE_P (x))
- check_default_args (x);
+ if (TREE_CODE (t) == FUNCTION_DECL || DECL_FUNCTION_TEMPLATE_P (t))
+ check_default_args (t);
if (t != x || DECL_FUNCTION_TEMPLATE_P (t))
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, t);
* gcc.dg/guality/guality.h (GUALCVT): Zero extend instead of
sign extend pointers to gualchk_t.
+ PR c++/43033
+ * g++.dg/other/default3.C: Xfail g4 test.
+
2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43012
template<typename> void g3(int = 0, int); // { dg-error "default" }
template<typename> void g4(int, int);
-template<typename> void g4(int = 0, int) {} // { dg-error "default" }
+template<typename> void g4(int = 0, int) {} // { dg-error "default" "" { xfail *-*-* } }
template<typename> void g5();
template<typename> void g5(int = 0, int); // { dg-error "default" }