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

Crashes when typing code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • Qt Creator 2.6.0-rc
    • Qt Creator 2.6.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Linux x86-64.
    • 7e9913f0f540e196ca7e53217d2edf19a9e8ef29

      While typing C++ code QtCreator crashes. The stack trace of the crash is attached. The crashed thread seems to be in infinite recursion as I saw thousands of similar stack frames below those in the attached report.

      The code that causes this is rather large and I couldn't create a minimal code sample to reproduce. But my code is similar to the following.

      {{
      namespace NS {

      template< typename T >
      struct A
      {
      typedef T char_type;

      virtual ~A() {}

      virtual void foo() = 0;
      };

      template< typename T >
      struct B
      {
      typedef T char_type;

      virtual ~B() {}

      virtual void foo() = 0;
      };

      template< typename T >
      struct C :
      public A< T >,
      public B< T >

      { }; }

      }}

      When I type my struct whict is equivalent to C in this example (in particular, when I type its base classes) QtCreator crashes. This minimal code sample doesn't crash, so probably the surrounding code and headers also influence this.

        For Gerrit Dashboard: QTCREATORBUG-7887
        # Subject Branch Project Status CR V

            hjk hjk
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes