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

Crash while adding string to initializer list with Clang Code Model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 3.1.0
    • C/C++/Obj-C++ Support
    • None
    • Fedora 20

    Description

      Steps to reproduce:
      1. Print `std::list<std::string>

      { "test" }

      ;`
      2. Try to prepend second and third strings: `std::list<std::string>

      { "-o", "test" }

      ;`

      When I try to open another pair of `"` after `"-o"`, it merges with the first symbol `"` of `"test"`. The QtCreator crashes with assertion:

      qtcreator: /home/user/Projects/llvm/include/llvm/ADT/SmallVector.h:140: reference llvm::SmallVectorTemplateCommon<char, void>::operator[](unsigned int) [T = char]: Assertion `begin() + idx < end()' failed.

      The full stack-trace in attachment.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            abyss.7 Ivan L
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes