r158075 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
jason@gcc.gnu.org
jason@gcc.gnu.org
Wed Apr 7 15:55:00 GMT 2010
Author: jason
Date: Wed Apr 7 15:55:20 2010
New Revision: 158075
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158075
Log:
PR c++/11094, DR 408
* cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
* decl2.c (finish_static_data_member_decl): Set it.
* decl.c (duplicate_decls): Propagate it.
* pt.c (tsubst_decl): Don't substitute the domain of an array
VAR_DECL if it's set.
(regenerate_decl_from_template): Substitute it here.
(type_dependent_expression_p): Return true if it's set.
* semantics.c (finish_decltype_type): Instantiate such a variable.
* typeck.c (cxx_sizeof_expr): Likewise.
(strip_array_domain): New.
Added:
trunk/gcc/testsuite/g++.dg/template/dr408.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list