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

Union containing a struct with __attribute__ causing editor crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 3.5.1
    • Qt Creator 3.1.1
    • Editors
    • None
    • Ubuntu 14.04; Qt 5.2.1

      Attached is a example piece that causes the crash.

      If within the function and try to use the auto complete feature in the example within the function, the IDE will segfault when attempting to auto complete data within the union.

      In my personal code, the segfault is happening as soon as I declare the structure. However if I give the structure with the attribute a name, the segfault does not occur (however this should not be required, since compilation can occur without).

        1. crashcode.h
          0.4 kB
          Joshua Strickland
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            js08k Joshua Strickland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes