[Bug c++/81918] [7/8 Regression] muddles Concept confuses compiler (segfault)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 10 11:19:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81918
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
template <typename> auto baz ();
template <typename C, typename D> concept bool e = requires (C a, D f) {{ f (a)
}};
template <typename G, typename D> requires e<G, D> auto bar (G, G, D);
void
foo ()
{
int i { bar (baz, i, [](auto j) { return j; }); };
}
More information about the Gcc-bugs
mailing list