diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 498560a77cd..6db2122751f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +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> * cp-tree.h (PARM_DECL_EXPR): Delete. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 161876ee80c..20b53743d87 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11031,7 +11031,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) /* Divergence from the standard: In extern "C", we allow non-static data members here, because C does 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", declarator); |