1998-10-29 Jason Merrill <jason@yorick.cygnus.com>
+ * decl.c (lookup_name_real): OK, only warn if not lexing.
+
* cp-tree.h (IDENTIFIER_MARKED): New macro.
* search.c (lookup_conversions): Use breadth_first_search.
(add_conversions): Avoid adding two conversions to the same type.
val = locval;
- /* To avoid redundant warnings, only warn when lexing, and the
- decls are significantly different. */
+ /* Only warn when not lexing; we don't want to warn if they
+ use this name as a declarator. */
subtype = TREE_TYPE (TREE_TYPE (classval));
- if (yylex
+ if (! yylex
&& ! (TREE_CODE (locval) == TEMPLATE_DECL
&& CLASSTYPE_TEMPLATE_INFO (subtype)
&& CLASSTYPE_TI_TEMPLATE (subtype) == locval)