diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-22 20:04:53 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-02-26 10:09:42 +0000 |
commit | b30e807fac091e32815e0a5cce58a71939792b7c (patch) | |
tree | 70d1d6a7f8f4387ca842de8a8dd386873ad6d776 /src/plugins/bazaar | |
parent | 8c11485edba3718925624612f2336d7853da297f (diff) | |
download | qt-creator-b30e807fac091e32815e0a5cce58a71939792b7c.tar.gz |
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>
Diffstat (limited to 'src/plugins/bazaar')
0 files changed, 0 insertions, 0 deletions