parse.y (empty_parms): Use `()', not `(...)', when in the scope of `extern "C++"'.
authorMark Mitchell <mark@codesourcery.com>
Wed, 26 Jul 2000 15:40:08 +0000 (15:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 26 Jul 2000 15:40:08 +0000 (15:40 +0000)
* parse.y (empty_parms): Use `()', not `(...)', when in the scope
of `extern "C++"'.

From-SVN: r35265

gcc/cp/ChangeLog
gcc/cp/parse.y

index 030cce6f7bdd5fe3149e74e4a1585f974fdf05b7..32bdc0194e9e9fad937bbf07356aab81f9f89026 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-26  Mark Mitchell  <mark@codesourcery.com>
+
+       * parse.y (empty_parms): Use `()', not `(...)', when in the scope
+       of `extern "C++"'.
+
 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
 
        Kill strict_prototype. Backwards compatibility only for
index d162a456941653bfd3a5299c2284d374c3fe0ecc..c7d6bd24af30b14e1ae99b7f6ce4e56cf55b7ef2 100644 (file)
@@ -102,7 +102,8 @@ empty_parms ()
   tree parms;
 
 #ifndef NO_IMPLICIT_EXTERN_C
-  if (in_system_header && current_class_type == NULL)
+  if (in_system_header && current_class_type == NULL 
+      && current_lang_name == lang_name_c)
     parms = NULL_TREE;
   else
 #endif