Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903614

Visit order causes structs to be generated in the wrong enclosing class

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      Consider this header:

      ```
      struct Dummy {
          struct Baz *Foo;
      };

      struct Bar {
          int x;
      };

      typedef struct tagFoo {
          struct Baz { int y; } bar;
      } Foo;
      ```

      In this case, we see Baz when we are visiting Dummy. Because of that, the name mangler thinks that Baz is nested inside Dummy, when in reality it's nested inside tagFoo.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: