diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2012-08-31 21:35:33 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-08-31 17:35:33 -0400 |
commit | 1dec70fa4cc518b6d823be7b643a39697cb4c625 (patch) | |
tree | 1524695c56ed99a3ea06e58c582ae2814eb03a05 /gcc/hooks.c | |
parent | be279f86519217092f8ddd89f4cc0688720d1730 (diff) | |
download | gcc-1dec70fa4cc518b6d823be7b643a39697cb4c625.zip gcc-1dec70fa4cc518b6d823be7b643a39697cb4c625.tar.gz gcc-1dec70fa4cc518b6d823be7b643a39697cb4c625.tar.bz2 |
re PR c++/18747 ("template<> int i;" accepted)
PR c++/18747
* pt.c (check_template_variable): New.
(num_template_headers_for_class): Split out...
* decl.c (grokdeclarator): ...from here.
(start_decl): Remove redundant diagnostic.
* cp-tree.h: Declare them
* parser.c (cp_parser_single_declaration): Call check_template_variable.
.
Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r190842
Diffstat (limited to 'gcc/hooks.c')
0 files changed, 0 insertions, 0 deletions