decl.c (cp_finish_decl): Tidy.
authorJason Merrill <jason@redhat.com>
Thu, 6 Aug 2015 01:33:27 +0000 (21:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 6 Aug 2015 01:33:27 +0000 (21:33 -0400)
commita2b4cfaa896be68bd0df2f75805ff50a549fd5d4
treeeea821c19b9474a2d220f27d9e0044a063e2b838
parentd8835b4d85ea1bb4b99ad891d417cd88719b7aff
decl.c (cp_finish_decl): Tidy.

* decl.c (cp_finish_decl): Tidy.
* typeck.c (finish_class_member_access_expr): Use
type_dependent_expression_p.
* semantics.c (finish_id_expression): Use
type_dependent_expression_p.  Don't build_qualified_name for a
decl in non-dependent scope.
* pt.c (type_dependent_expression_p): A TEMPLATE_ID_EXPR of an
identifier is dependent.  Remove variable_template_p check.

From-SVN: r226652
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c