From 0c10a805ded4efc5abfe3b8485ccb335e85515af Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 26 Jul 2000 15:40:08 +0000 Subject: [PATCH] parse.y (empty_parms): Use `()', not `(...)', when in the scope of `extern "C++"'. * parse.y (empty_parms): Use `()', not `(...)', when in the scope of `extern "C++"'. From-SVN: r35265 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parse.y | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 030cce6f7bd..32bdc0194e9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-07-26 Mark Mitchell + + * parse.y (empty_parms): Use `()', not `(...)', when in the scope + of `extern "C++"'. + 2000-07-25 Nathan Sidwell Kill strict_prototype. Backwards compatibility only for diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index d162a456941..c7d6bd24af3 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -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 -- 2.30.2