[Qt-creator] Crash in the recent snapshots
Leandro T. C. Melo
ltcmelo at gmail.com
Sun Sep 2 21:29:16 CEST 2012
On Fri, Aug 31, 2012 at 4:51 PM, Stephen Chu <stephen at ju-ju.com> wrote:
> I ran into this curious crash in the recent snapshots:
> https://bugreports.qt-project.org/browse/QTCREATORBUG-7801
>
> It seems some line in the header file is causing the crash when opening
> a cpp file. I can't figure out what it is. Maybe I picked a cursed name
> for the function? :)
Funny... But it's kind of.
It seems that our model is getting confused when interpreting the auto
variable named path and the function with the same name. For instance,
if you replace the auto keyword by QString in the following line of
your code the crash goes away.
auto path = path();
Thanks for the hint in the report. :-)
--
Leandro T. C. Melo
http://www.ltcmelo.com
Qt Creator - http://qt.nokia.com/downloads/downloads#qt-creator
More information about the Qt-creator
mailing list