[c++-concepts] function concepts with deduced return type
Tue Sep 30 12:54:00 GMT 2014
Do not allow. Return type deduction only happens during instantiation,
and concepts are never instantiated. Therefore, we can't find the
return type of a function concept until you try to normalize the
2014-09-25 Andrew Sutton <firstname.lastname@example.org>
Explicitly disallow function concepts with deduced return types.
* gcc/cp/constraint.cc (check_function_concept): Remove check
for deduced return type.
* gcc/cp/decl.c (check_concept_fn): Explicitly check for
deduced return type.
* gcc/testsuite/g++.dg/concepts/fn-concept2.C: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2024 bytes
Desc: not available
More information about the Gcc-patches