This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67384] New: [concepts] More fun with deduction constraints
- From: "Casey at Carter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Aug 2015 14:30:29 +0000
- Subject: [Bug c++/67384] New: [concepts] More fun with deduction constraints
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67384
Bug ID: 67384
Summary: [concepts] More fun with deduction constraints
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: Casey at Carter dot net
Target Milestone: ---
r227270 with -std=gnu++1z compiles this TU without diagnostics:
template <class T>
concept bool C = requires (T t) {
{ *t } -> auto;
};
template <C T>
constexpr bool models = true;
template <class T>
requires !C<T>
constexpr bool models_not = true;
static_assert(models<int*>);
static_assert(models_not<int*>);
apparently int& both is and is not deducible to auto.