Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1413

Code Model: Wrong type when declaring multiple structs with a macro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • cnd - Code Model
    • None

    Description

      Migrated issue from old issue tracker: https://netbeans.org/bugzilla/show_bug.cgi?id=270898

      When declaring multiple structures in the same macro, the code model incorrectly types all structures as the last used type. Example below.

      All of the following have the type MsgC, when they should be MsgA/MsgB/MsgC.

      list2_.aaa.msg.a
      list2_.bbb.msg.b
      list2_.ccc.msg.c

       

      Attachments

        1. test.c
          1 kB
          Kevin Hallenbeck
        2. netbeans_struct_macro.png
          96 kB
          Kevin Hallenbeck

        Activity

          People

            Unassigned Unassigned
            khallenbeck Kevin Hallenbeck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: