https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62027

            Bug ID: 62027
           Summary: missing dwarf info for struct/union nested in class
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sijun.liu at oracle dot com

Problem: For struct/union defined in class. their dwarf info are missing.
In the following test case, the dwarf info for Un and St are missing.

GNU C++ 4.8.1 -m64 -mtune=generic -march=x86-64 -g -std=c++11
Platform: Solaris 10 on intel chip

---------- t.cc ------------------------------------------------------------

class CLS {
    public:
        union Un {
            int a;
            int b;
        };

        struct St {
            int c;
            int d;
        };
} A;

int main() {
    return 1;
}

Reply via email to