2014-06-24 Andrew Sutton <andrew.n.sutton@gmail.com>
commit7dcc2a7359c34ba0ab003d9f6b5c7469a7826234
authorasutton <asutton@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 14:59:59 +0000 (24 14:59 +0000)
committerasutton <asutton@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 14:59:59 +0000 (24 14:59 +0000)
treeb916f59f42664878dc7a08c6e6dc9e394586ee7f
parent375a265ae3a2b32d86215a46e3b08db9f6c149bd
2014-06-24  Andrew Sutton  <andrew.n.sutton@gmail.com>
        * gcc/cp/parser.c (cp_maybe_constrained_type_specifier): Defer
        handling the BASELINK check until concept-resolution in order to
        allow member conceps.
        (cp_parser_nonclass_name): Also Check for concept-names when the
        lookup finds a BASELINk.
        * gcc/cp/constraint.cc: (resolve_constraint_check) If the call
        target is a base-link, resolve against its overload set.
        (build_concept_check): Update comments and variable names to
        reflect actual processing.
        * gcc/testuite/g++.dg/concepts/mem-concept.C: New test.
        * gcc/testuite/g++.dg/concepts/mem-concept-err.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/c++-concepts@211946 138bc75d-0d04-0410-961f-82ee72b054a4
ChangeLog.concepts
gcc/cp/constraint.cc
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/concepts/mem-concept-err.C [new file with mode: 0644]
gcc/testsuite/g++.dg/concepts/mem-concept.C [new file with mode: 0644]