2014-06-28 Andrew Sutton <andrew.n.sutton@gmail.com>
commitcef19c80a44a0ce25f4357d3a6573c57ad48832c
authorasutton <asutton@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2014 14:49:47 +0000 (28 14:49 +0000)
committerasutton <asutton@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2014 14:49:47 +0000 (28 14:49 +0000)
tree20d2bca959de432194bcd997e7ad73a785ad7467
parente83e341be47879f94469e0efb2fe901b2672b19a
2014-06-28  Andrew Sutton  <andrew.n.sutton@gmail.com>
* gcc/cp/cp-tree.h (DECL_CONSTRAINTS): Remove this macro; use
get_constraints instead.
(set_constraints): new.
* gcc/cp/cxx-pretty-print.c (pp_cxx_template_declaration): Use
get_constraints.
* gcc/cp/pt.c (get_specialization_constraints): Use get_constraints.
(build_template_decl): Use get_constraints.
(process_partial_specialization): Use get_constraints.
(add_inherited_template_parms): Use get_constraints.
(redeclare_class_template): Use get_constraints.
(is_compatible_template_arg): Use get_constraints.
(tsubst_friend_class): Use get_constraints.
(tsubst_decl): Uset get_constraints.
* gcc/cp/semantics.c (finish_template_template_parm): Use
get_constraints.
(fixup_template_type): Use get_constraints.
* gcc/cp/constraint.cc (constraints): New global association
of declarations to constraints.
(get_constraints): Return the associated constraints from the
hash table.
(set_constraints): New. Associate constraints with a declaration.
(check_template_constraints): Use get_constraints.
(equivalently_constrained): Use get_constraints.
(more_constrained): Use get_constraints.
(diagnose_constraints): Use get_constraints.
* gcc/testsuite/g++.dg/concepts/partial-spec.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/c++-concepts@212103 138bc75d-0d04-0410-961f-82ee72b054a4
ChangeLog.concepts
gcc/cp/constraint.cc
gcc/cp/cp-tree.h
gcc/cp/cxx-pretty-print.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/concepts/partial-spec.C [new file with mode: 0644]