Closed jcelerier closed 6 years ago
simplified it to something that can't be anything else than a compiler bug :
template<typename F>
struct Functor {
F func;
};
template<typename F>
constexpr Functor<F> fun(F f)
{
return {f};
}
class bar { };
class baz { };
class foo: public bar, public baz
{
void blah() { }
void x()
{
constexpr auto x = fun(&foo::blah);
}
};
I reported it : https://developercommunity.visualstudio.com/content/problem/311491/simple-code-does-not-compile-anymore-in-vs2017-158.html
Since apparently they are going to fix the issue in a patch release, I guess I can close this issue.
yep !
The following code does not compile anymore (in c++14 or 17 mode)
It fails with errors such as :
edit: simplfied a bit the repro :