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

anonymous structs are mixed up

    XMLWordPrintable

Details

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

    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

        Activity

          People

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

            Dates

              Created:
              Updated: