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

Anonymous union in a function - corner case

    XMLWordPrintable

Details

    • 6bf75acac7ace2b5b5bdc156c48da85d76e985fd

    Description

      In the following example nothing is highlighted

      int foo()
      {
          union
          {
              int foo1;
              int foo2;
          };
          foo1 = 42;
      }

      Adding another nested type (even a forward declaration) surprisingly fixes highlighting...

      int foo()
      {
          union
          {
              int foo1;
              int foo2;
          };
          foo1 = 42;
          struct Foo;
      }

      foo1 and foo2 don't appear in autocomplete on both cases.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes