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

Add or Move defn of class template method fails (different from bug 24801)

    XMLWordPrintable

Details

    • 3cd2e2c445e4e48622ddd26a3ac6fa28b254f873 (qt-creator/qt-creator/4.14)

    Description

      Adding a declared method in a templated class to its implementation file, or moving an existing definition from the declaration to its implementation file, generates bad code under these conditions: other methods exist in the implementation file and the method being moved/added will be inserted before the existing ones.

      The attached files demonstrate the issue.

      Attachments

        1. QtcBug1_actual.cpp
          0.2 kB
        2. QtcBug1_expected.cpp
          0.2 kB
        3. QtcBug1.cpp
          0.1 kB
        4. QtcBug1.h
          0.3 kB

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              qtjake Jake Helfert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes