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

Cannot expand std::complex in watch window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.4.0-rc1
    • Qt Creator 4.3.1
    • Debugger
    • None
    • Ubuntu Linux 16.04 x64, GDB 7.11.1
    • 376b1f32dc683bf34ab9cf81e95745cae3adfbe1

    Description

      There is no expand triangle for std::complex<float> types. You only see (1.0, 2.0) as value and can therefore not change the value.

      #include <complex>
      #include <iostream>
      
      int main()
      {
          std::complex<float> a(1, 2);
          std::complex<float> b(3, 4);
      
          auto c = a + b;
      
          std::cout << "Value: " << c << std::endl;
          return 0;
      }
      

      Attachments

        1. debuggerlog-left.txt
          23 kB
          André Hartmann
        2. debuggerlog-right.txt
          241 kB
          André Hartmann
        3. screenshot-1.png
          149 kB
          André Hartmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes