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

Wrong position on Ctrl-Space with nested struct initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 17.0.0
    • C/C++/Obj-C++ Support
    • None

    Description

      struct Foo {
        int f1;
        int f2;
        int f3;
      };
      
      struct Bar
      {
        Foo b1;
        int b2;
        int b3;
        int b4;
        int b5;
      };
      
      Bar b = {{1, 2, 3}, /* cursor here */ 4, 5, 6};

      Press Ctrl-Space where the cursor is positioned. The highlighted entry should be b2, but it's b4.

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change