This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26068] [4.0/4.1 Regression] extern "C" static function should not be allowed
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2006 02:56:00 -0000
- Subject: [Bug c++/26068] [4.0/4.1 Regression] extern "C" static function should not be allowed
- References: <bug-26068-12085@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from mmitchel at gcc dot gnu dot org 2006-05-31 02:56 -------
Subject: Bug 26068
Author: mmitchel
Date: Wed May 31 02:55:52 2006
New Revision: 114261
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114261
Log:
PR c++/26068
* parser.c (cp_parser_set_storage_class): Check for
invalid uses of storage classes on unbraced linkage
specifications.
(cp_parser_decl_specifier_seq): Pass keywords, not storage classes,
to cp_parser_set_storage_class.
PR c++/26068
* g++.dg/opt/pr17697-3.C: Remove invalid extern specifier.
* g++.dg/parse/linkage1.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/linkage1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/pr17697-3.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26068