You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template struct X {
auto f() { return 0; }
void g() { f(); }
};
saying:
:3:14: error: function 'f' with deduced return type cannot be used before it is defined
void g() { f(); }
^
This isn't right: we should be allowed to reference this function as a member of the current instantiation. We should probably deduce the return type to DependentTy when the template is defined.
The text was updated successfully, but these errors were encountered:
Extended Description
Clang rejects this:
template struct X {
auto f() { return 0; }
void g() { f(); }
};
saying:
:3:14: error: function 'f' with deduced return type cannot be used before it is defined
void g() { f(); }
^
This isn't right: we should be allowed to reference this function as a member of the current instantiation. We should probably deduce the return type to DependentTy when the template is defined.
The text was updated successfully, but these errors were encountered: