diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2011-05-09 20:34:35 +0300 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-09 13:34:35 -0400 |
commit | b5da71d41644c40db95aabac8f67c28294f4c85f (patch) | |
tree | 704c11fb901ce576ac515237bef43408fce32e9c /gcc/testsuite/c-c++-common/uninit-G.c | |
parent | 51e7f3770c99afc09afc9e9837aad4c8505fbbf8 (diff) | |
download | gcc-b5da71d41644c40db95aabac8f67c28294f4c85f.zip gcc-b5da71d41644c40db95aabac8f67c28294f4c85f.tar.gz gcc-b5da71d41644c40db95aabac8f67c28294f4c85f.tar.bz2 |
Implement final/override for member functions.
gcc/
* tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST): Convert to enum.
(TYPE_QUAL_VOLATILE, TYPE_QUAL_RESTRICT): Likewise.
gcc/cp/
* class.c (check_for_override): Check for DECL_OVERRIDE_P.
* cp-tree.h (DECL_OVERRIDE_P, DECL_FINAL_P): New.
(cp_virt_specifiers, enum virt_specifier): New.
* decl.c (set_virt_specifiers): New.
(grokdeclarator): Use them. Diagnose virt-specifiers on non-fields.
* parser.c (make_call_declarator): add virt-specifiers parameter.
(cp_parser_lambda_declarator_opt): Adjust.
(cp_parser_direct_declarator): Likewise.
(cp_parser_virt_specifier_seq_opt): New.
* search.c (check_final_overrider): Diagnose attempts to override
a final member function.
From-SVN: r173581
Diffstat (limited to 'gcc/testsuite/c-c++-common/uninit-G.c')
0 files changed, 0 insertions, 0 deletions