Commit e9359c71 by Jason Merrill Committed by Jason Merrill

* decl.c (grokdeclarator): Fix lang_c -> lang_name_c typo.

From-SVN: r24807
parent 470b68c0
1999-01-21 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokdeclarator): Fix lang_c -> lang_name_c typo.
1999-01-21 Mark Mitchell <mark@markmitchell.com> 1999-01-21 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (PARM_DECL_EXPR): Delete. * cp-tree.h (PARM_DECL_EXPR): Delete.
......
...@@ -11031,7 +11031,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) ...@@ -11031,7 +11031,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
/* Divergence from the standard: In extern "C", we /* Divergence from the standard: In extern "C", we
allow non-static data members here, because C does allow non-static data members here, because C does
and /usr/include/netinet/in.h uses that. */ and /usr/include/netinet/in.h uses that. */
&& (staticp || current_lang_name != lang_c)) && (staticp || current_lang_name != lang_name_c))
cp_pedwarn ("ANSI C++ forbids data member `%D' with same name as enclosing class", cp_pedwarn ("ANSI C++ forbids data member `%D' with same name as enclosing class",
declarator); declarator);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment