]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.h
re PR libstdc++/51365 (cannot use final empty class in std::tuple)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Thu, 15 Dec 2011 10:02:45 +0000 (10:02 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 15 Dec 2011 10:02:45 +0000 (10:02 +0000)
commitb3908fcc0def5f1d0318bd826d889e557ed4dee0
treeb5ec06214bfe64f832b32feca5392a5e7503ad08
parentd36971dd86653e81a8dba44f34f777c538b45631
re PR libstdc++/51365 (cannot use final empty class in std::tuple)

c-family:
PR libstdc++/51365
* c-common.c (RID_IS_FINAL): Add.
* c-common.h (RID_IS_FINAL): Add.
cp:
PR libstdc++/51365
* cp-tree.h (CPTK_IS_FINAL): Add.
* parser.c (cp_parser_translation_unit): Handle RID_IS_FINAL.
(cp_parser_primary_expression, cp_parser_trait_expr): Likewise.
* semantics.c (trait_expr_value, finish_trait_expr): Handle
CPTK_IS_FINAL.
* cxx-pretty-print.c (pp_cxx_trait_expression): Likewise.
testsuite:
PR libstdc++/51365
* g++.dg/ext/is_final.C: New.

From-SVN: r182360
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cxx-pretty-print.c
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/is_final.C [new file with mode: 0644]