diff options
author | Simon Baldwin <simonb@google.com> | 2007-06-18 22:09:14 +0000 |
---|---|---|
committer | Simon Baldwin <simonb@gcc.gnu.org> | 2007-06-18 22:09:14 +0000 |
commit | 736b81007e965d4d1141dca6e45837d756741ddb (patch) | |
tree | ebe83019aac080d1a8f2fefc14cab3473f2d4579 /gcc/testsuite/ChangeLog | |
parent | d448952a83fa71a5658c2f775e7c86316821f4fe (diff) | |
download | gcc-736b81007e965d4d1141dca6e45837d756741ddb.zip gcc-736b81007e965d4d1141dca6e45837d756741ddb.tar.gz gcc-736b81007e965d4d1141dca6e45837d756741ddb.tar.bz2 |
re PR c++/31923 (g++ accepts a storage-class-specifier on a template explicit specialization)
gcc/cp/ChangeLog
2007-06-15 Simon Baldwin <simonb@google.com>
PR c++/31923
* parser.c (cp_parser_single_declaration): Added check for storage
class other than sc_none in parsed declaration, and a flag to indicate
if the call is part of an explicit template specialization parse.
* (cp_parser_explicit_specialization): Specialization check flag added
to call to cp_parser_single_declaration(), set true.
* (cp_parser_template_declaration_after_export): Specialization check
flag added to call to cp_parser_single_declaration(), set false.
* pt.c (check_explicit_specialization): Added code to copy visiblity
and linkage from the templated function to the explicit specialization.
gcc/testsuite/ChangeLog
2007-06-15 Simon Baldwin <simonb@google.com>
PR c++/31923
* g++.dg/template/error25.C: New.
* g++.dg/template/spec35.C: New.
From-SVN: r125829
Diffstat (limited to 'gcc/testsuite/ChangeLog')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7550286..dbfb12b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-06-18 Simon Baldwin <simonb@google.com> + + PR c++/31923 + * g++.dg/template/error25.C: New. + * g++.dg/template/spec35.C: New. + 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com> * gcc.c-torture/compile/pr32355.c: New testcase. |