OSDN Git Service

2011-10-17 Michael Spertus <mike_spertus@symantec.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Oct 2011 02:58:06 +0000 (02:58 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Oct 2011 02:58:06 +0000 (02:58 +0000)
commite6014a82ae8a4aec4fb4bee768401c7da3549d97
tree025d5854011b99cfe93205d711317cfd2947da24
parent05d36c46715e8b9ad4692b7c91da4594cf0d9826
2011-10-17  Michael Spertus  <mike_spertus@symantec.com>

* gcc/c-family/c-common.c (c_common_reswords): Add __bases,
__direct_bases.
* gcc/c-family/c-common.h: Add RID_BASES and RID_DIRECT_BASES.

2011-10-17  Michael Spertus  <mike_spertus@symantec.com>

* cp-tree.def: Add BASES as a new tree code.
* cp-tree.h (enum cp_trait_kind): Add CPTK_BASES, CPTK_DIRECT_BASES.
(BASES_TYPE, BASES_DIRECT): Define.
(calculate_bases, finish_bases, calculate_direct_bases): Declare.
* parser.c (cp_parser_trait_expr, cp_parser_template_argument_list,
(cp_parser_simple_type_specifier, cp_parser_save_nsdmi): Use them.
* pt.c (find_parameter_packs_r, tsubst_pack_expansion): Likewise.
* semantics.c (calculate_bases, finish_bases, calculate_direct_bases,
dfs_calculate_bases_pre, dfs_calculate_bases_post,
calculate_bases_helper): Define.

2011-10-17  Michael Spertus  <mike_spertus@symantec.com>

* g++.dg/ext/bases.C: New test.

2011-10-17  Michael Spertus  <mike_spertus@symantec.com>

* include/tr2/type_traits (bases, direct_bases, typelist): New.

2011-10-17  Benjamin Kosnik  <bkoz@redhat.com>

* libstdc++-v3/include/Makefile.am: Add tr2 directory and includes.
* libstdc++-v3/include/Makefile.in: Regenerate.

* scripts/create_testsuite_files: Search tr2 directory.
* testsuite/libstdc++-dg/conformance.exp: Same.

* testsuite/tr2/bases/requirements/explicit_instantiation.cc: New.
* testsuite/tr2/bases/requirements/typedefs.cc: New.
* testsuite/tr2/bases/value.cc: New.
* testsuite/tr2/direct_bases/requirements/
explicit_instantiation.cc: New.
* testsuite/tr2/direct_bases/requirements/typedefs.cc: New.
* testsuite/tr2/direct_bases/value.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180121 138bc75d-0d04-0410-961f-82ee72b054a4
23 files changed:
gcc/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/cp/ChangeLog
gcc/cp/cp-tree.def
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/bases.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/tr2/type_traits [new file with mode: 0644]
libstdc++-v3/scripts/create_testsuite_files
libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
libstdc++-v3/testsuite/tr2/bases/requirements/explicit_instantiation.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr2/bases/requirements/typedefs.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr2/bases/value.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr2/direct_bases/requirements/explicit_instantiation.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr2/direct_bases/requirements/typedefs.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr2/direct_bases/value.cc [new file with mode: 0644]