* typeck2.c (cxx_incomplete_type_diagnostic): Revert change and
check is_overloaded_fn.
From-SVN: r248119
+2017-05-16 Nathan Sidwell <nathan@acm.org>
+
+ * typeck2.c (cxx_incomplete_type_diagnostic): Revert change and
+ check is_overloaded_fn.
+
2017-05-16 Martin Liska <mliska@suse.cz>
* parser.c (cp_lexer_print_token): Add default value for flags
(get_first_fn) Document.
* typeck.c (cp_build_addr_expr_1): Pass arg directly to
really_overloaded_fn.
- * typeck2.c (cxx_inomplete_type_diagnostic): Use get_first_fn directly.
+ * typeck2.c (cxx_incomplete_type_diagnostic): Use get_first_fn directly.
* cp-tree.h (SCOPE_DEPTH): New.
* name-lookup.h (is_nested_namespace): Declare.
case OFFSET_TYPE:
bad_member:
{
- tree member = get_first_fn (TREE_OPERAND (value, 1));
+ tree member = TREE_OPERAND (value, 1);
+ if (is_overloaded_fn (member))
+ member = get_first_fn (member);
if (DECL_FUNCTION_MEMBER_P (member)
&& ! flag_ms_extensions)