re PR c++/26068 (extern "C" static function should not be allowed)
authorMark Mitchell <mark@codesourcery.com>
Wed, 17 May 2006 17:24:00 +0000 (17:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 17 May 2006 17:24:00 +0000 (17:24 +0000)
commitbfce0853962267886bd1fc10ac9a579eda2b8f4f
tree531ac8a47e645064c282b18d247a23a103c45683
parentb9cebd5026fbd40b0ea3af4c9dc388b356e5fd48
re PR c++/26068 (extern "C" static function should not be allowed)

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.

From-SVN: r113869
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr17697-3.C
gcc/testsuite/g++.dg/parse/linkage1.C [new file with mode: 0644]