gcc/gcc/cp
Simon Baldwin 736b81007e 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
2007-06-18 22:09:14 +00:00
..
ChangeLog re PR c++/31923 (g++ accepts a storage-class-specifier on a template explicit specialization) 2007-06-18 22:09:14 +00:00
ChangeLog-1993
ChangeLog-1994
ChangeLog-1995
ChangeLog-1996
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005 ChangeLog: split old changelogs by year 2007-05-04 00:16:02 +00:00
ChangeLog-2006 ChangeLog: split old changelogs by year 2007-05-04 00:16:02 +00:00
ChangeLog.ptr [multiple changes] 2007-06-15 22:42:36 -07:00
ChangeLog.tree-ssa
Make-lang.in re PR bootstrap/30899 (build failure with --enable-generated-files-in-srcdir) 2007-03-13 23:51:07 +00:00
NEWS
call.c [multiple changes] 2007-06-15 22:42:36 -07:00
cfns.gperf
cfns.h
class.c [multiple changes] 2007-06-15 22:42:36 -07:00
config-lang.in gengtype.c: Don't include gtyp-gen.h. 2007-03-26 21:07:27 +00:00
cp-gimplify.c [multiple changes] 2007-06-15 22:42:36 -07:00
cp-lang.c invoke.texi (Debugging Options): Add documentation for the -femit-struct-debug options... 2007-04-17 06:19:36 +00:00
cp-objcp-common.c 2007-04-07 Daniel Berlin <dberlin@dberlin.org> 2007-04-07 23:08:23 +00:00
cp-objcp-common.h really remove signed(_or_unsigned)?_type langhooks 2007-06-11 15:40:55 +00:00
cp-tree.def re PR c++/26099 (support for type traits is not available) 2007-03-30 19:45:57 +00:00
cp-tree.h cp-tree.h (DECL_VAR_MARKED_P): Remove. 2007-06-15 16:58:29 +00:00
cvt.c invoke.texi (Warning Options): Add -Wconversion-sign. 2007-05-19 13:32:03 +00:00
cxx-pretty-print.c error.c (dump_expr): Handle dependent names that designate types. 2007-03-23 02:58:46 +00:00
cxx-pretty-print.h
decl.c cp-tree.h (DECL_VAR_MARKED_P): Remove. 2007-06-15 16:58:29 +00:00
decl.h
decl2.c cp-tree.h (DECL_VAR_MARKED_P): Remove. 2007-06-15 16:58:29 +00:00
dump.c tree.h (enum tree_code_class): Add tcc_vl_exp. 2007-02-15 18:50:49 -05:00
error.c re PR c++/30759 (initializer-list accepted for object of non-POD type) 2007-06-07 19:59:33 +00:00
except.c [multiple changes] 2007-06-15 22:42:36 -07:00
expr.c
friend.c friend.c (do_friend): Annotate warning about friend declarations in templates with... 2007-02-12 23:55:17 +00:00
g++spec.c Index: gcc/cp/ChangeLog 2007-03-02 21:07:37 +00:00
init.c [multiple changes] 2007-06-15 22:42:36 -07:00
lang-specs.h re PR driver/28528 (C language extensions override -x in C++ driver) 2006-08-25 00:24:10 +00:00
lex.c re PR c++/30759 (initializer-list accepted for object of non-POD type) 2007-06-07 19:59:33 +00:00
mangle.c re PR c++/7412 ([DR 106] References to references) 2007-05-31 01:18:22 +00:00
method.c [multiple changes] 2007-06-15 22:42:36 -07:00
name-lookup.c name-lookup.c (ambiguous_decl): Adds check for hidden types. 2007-05-22 21:05:01 +00:00
name-lookup.h
operators.def re PR c++/20599 (variadic template support) 2007-03-10 01:58:58 +00:00
optimize.c omp-low.c (splay-tree.h): Include. 2007-03-31 14:07:29 +00:00
parser.c re PR c++/31923 (g++ accepts a storage-class-specifier on a template explicit specialization) 2007-06-18 22:09:14 +00:00
pt.c re PR c++/31923 (g++ accepts a storage-class-specifier on a template explicit specialization) 2007-06-18 22:09:14 +00:00
ptree.c ptree.c (cxx_print_type): Use formatting markup for integers when printing template parameter... 2007-03-15 13:51:09 +00:00
repo.c flags.h (flag_random_seed): Remove declaration, in favor of... 2007-03-14 01:47:33 +00:00
rtti.c [multiple changes] 2007-06-15 22:42:36 -07:00
search.c re PR c++/29475 (incomplete template diagnostics.) 2006-11-20 21:15:44 +00:00
semantics.c re PR c++/32177 (g++ crashes on some valid OpenMP code) 2007-06-08 01:11:23 +02:00
tree.c re PR c++/7412 ([DR 106] References to references) 2007-05-31 01:18:22 +00:00
typeck.c [multiple changes] 2007-06-15 22:42:36 -07:00
typeck2.c [multiple changes] 2007-06-15 22:42:36 -07:00