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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: