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

Child of struct declared using typedef not recognized by debugger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.3.0-rc, Qt Creator 2.5.0-beta
    • Debugger
    • None
    • Windows XP SP3, MinGW (GDB)

      Consider the following code:

      typedef struct
      {
        int m1;
        int m2;
      } s1;
      
      struct s2 : public s1
      {
      };
      
      int main()
      {
        s2 s;
        s.m1 = 5;
        return 0; // breakpoint here
      }
      

      Try to expand s, you get "<unavailable synchronous data>". If s is declared as s1, it works.

      Debugger log

        1. struct_typedef.log
          18 kB
        2. typedef-2.4.log
          16 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes