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

anonymous structs are mixed up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 6.0.0-rc1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:

      Description

      suppose this code:

      typedef struct {
      	int len;
      } s1_t;
      
      typedef struct {
      	int len;
      } s2_t;
      

      then finding usages of the len member of one struct turns up some instances of the other one as well. the structs are recognized as separate (the searches get different identifiers), and the found declaration of the member comes from the correct struct. the results seem stable (at least from directly subsequent searches), but which references are included appears somewhat random.

      if you can't repro it with an artificial test, try https://git.code.sf.net/p/isync/isync, types msg_data_t and conn_iovec_t.

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes