Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.8.0-rc
-
None
-
e98664690558aafa2833e07fd0c13a003cec8b32 af0582cdc9f6e8e0de0453846bda22c8956e6347
Description
#include <QList> struct Foo { int foo; }; void assign() { QList<Foo> list; return list.first().foo; // assign to local var }
Result:
return const T localFirst = list.first().foo;