re PR c++/55127 (Incorrect "dependent scope" error with partial specialization of...
authorJason Merrill <jason@redhat.com>
Sat, 8 Dec 2012 03:31:37 +0000 (22:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 8 Dec 2012 03:31:37 +0000 (22:31 -0500)
commitcf3c30d31f791b34b0190f0f06c732f14f63f2f5
tree3caa0e662e11296db05750ca5ead364263a066e6
parent4eaee921faac4b20bcc81988ec2b1af4cc087efc
re PR c++/55127 (Incorrect "dependent scope" error with partial specialization of non-type parameter)

PR c++/55127
* search.c (accessible_in_template_p): New.
* cp-tree.h: Declare it.
* pt.c (instantiation_dependent_scope_ref_p): New.
(value_dependent_expression_p): Use it.
(instantiation_dependent_r): Likewise.
* semantics.c (finish_decltype_type): Handle SCOPE_REF.

From-SVN: r194318
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/template/defarg16.C [new file with mode: 0644]