This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242408 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...


Author: jason
Date: Tue Nov 15 05:22:28 2016
New Revision: 242408

URL: https://gcc.gnu.org/viewcvs?rev=242408&root=gcc&view=rev
Log:
Various C++17 decomposition fixes.

	* tree.c (bitfield_p): New.
	* cp-tree.h: Declare it.
	* typeck.c (cxx_sizeof_expr, cxx_alignof_expr)
	(cp_build_addr_expr_1): Use it instead of DECL_C_BIT_FIELD.
	* decl.c (cp_finish_decomp): Look through reference.  Always
	SET_DECL_DECOMPOSITION_P.
	* semantics.c (finish_decltype_type): Adjust decomposition handling.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp-bitfield1.C
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp-constexpr1.C
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp11.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/g++.dg/cpp0x/addressof2.C
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp10.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]