Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10090

Crash on Autocompleting static_cast<std::weak_ptr<T> >(T).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • Qt Creator 2.7.1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 13.10 (Saucy), amd64

      QTCreator crashes on trying to autcompletion.
      (Launchpad Bugreport: https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1220148 )

      I'm using the Version provided via Ubuntu-Saucy repositorys.

      Steps to reproduce:
      1. Create a (Non-QT-) C++ Project (Give it a name and just click "Next" over and over)
      2. Activate std=gnu++0x by pasting:
      "QMAKE_CXXFLAGS = -std=gnu+0x" somewhere in the generated "pro" file.
      3. Close and reopen the Project, so QTCreator knows about the "QMAKE_CXXFLAGS" and loads those autocompletions.
      4. Open the generated C++ file with the "main" function.
      5. Replace it's content with the code at http://paste.ubuntu.com/6058289/
      6. at line 11 ("static_cast<std::weak_ptr<T> >(test);") insert a "." before the semicolon (";")

      You can find the backtrace provided by gdb at http://paste.ubuntu.com/6058300/

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            octavian Simon K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes