C++: Fix crash on static template instantiation
template<typename T>
struct QList
{
struct iterator
{
T *operator->() { return &t; }
T t;
};
static iterator begin() { return iterator(); }
};
struct Foo { int bar; };
void fun() {
auto a = QList<Foo>::begin();
a. // crash
}
Change-Id: I373c493b2eefc9566ec13165285c33d474a3b440
Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Showing
Please register or sign in to comment