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

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

      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.

        1. QtcBug1.cpp
          0.1 kB
          Jake Helfert
        2. QtcBug1.h
          0.3 kB
          Jake Helfert
        3. QtcBug1_actual.cpp
          0.2 kB
          Jake Helfert
        4. QtcBug1_expected.cpp
          0.2 kB
          Jake Helfert
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes