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

Crashes while parsing some templated C++ code

    XMLWordPrintable

Details

    • fbb756cdcc3976a3afb8ffec5477b19ec77914c9

    Description

      Qt-Creator crashes while trying to parse the file itempayloadinternals_p.h installed from Akonadi. (https://projects.kde.org/projects/kde/kdepimlibs/repository/revisions/master/entry/akonadi/itempayloadinternals_p.h Lines 107-120)

      I narrowed the code down to the following 6 lines C++ template magic:
      template< typename T > struct A

      { typedef int Type }

      ;
      template< typename T > struct B {};
      template< typename T > struct C;
      template< typename T, typename S > struct D : C< S > {};
      template< typename T > struct D< T, T > : A< T > {};
      template< typename T > struct C : D< T, typename B::Type > {};

      The stack trace (which looks like an endless recursion) is attached.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            sacu Sascha Cunz
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes