From e9359c7128fed3b550d2afa87741e7e7392344b8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 21 Jan 1999 18:39:29 +0000 Subject: [PATCH] * decl.c (grokdeclarator): Fix lang_c -> lang_name_c typo. From-SVN: r24807 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * decl.c (grokdeclarator): Fix lang_c -> lang_name_c typo. + 1999-01-21 Mark Mitchell * 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); -- 2.30.2