aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-07-26 15:40:08 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-07-26 15:40:08 +0000
commit0c10a805ded4efc5abfe3b8485ccb335e85515af (patch)
tree1e778d53b3d1899c9ee54ae447d1aa7c666c51c4 /gcc
parent5dc2d67f2cee969e07bf4a1f6a4f20dc236ba2bd (diff)
downloadgcc-0c10a805ded4efc5abfe3b8485ccb335e85515af.zip
gcc-0c10a805ded4efc5abfe3b8485ccb335e85515af.tar.gz
gcc-0c10a805ded4efc5abfe3b8485ccb335e85515af.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parse.y3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 030cce6..32bdc01 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index d162a45..c7d6bd2 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