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

crash in base class lookup due to infinitive recursion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 2.7.0
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 12.04.1, Qt 4.8 (dff8dd6)
    • fbb756cdcc3976a3afb8ffec5477b19ec77914c9

    Description

      Typing a somewhat ill-formed construct crashes the editor due to infinitive nested type lookup recursion. Typing the following in an empty source file manifests this:

      class C : public C

      The reason seems to be the initialization of variable 'binding' to 'this' at LookupContext.cpp:795, which in case no qualified base class name is found ends up calling the same object recursively infinitely. Instead initializing the variable to '0' seems to fix the problem.

      After the change 'qtcreator -test CppTools' passes all tests.

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              phodju Petri Hodju
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes