https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19954
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Known to work| |13.2.1, 7.5.0 Status|NEW |RESOLVED --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- (gdb) n 6 float* pt = d1.getData(1); /* set breakpoint here */ (gdb) ptype d1 type = class Derived1 { private: int mySize; int myId; float *myPointer; public: Derived1(int); ~Derived1(); virtual int getId(void); virtual float * getData(int); } works now as also verified in PR12385. Verified with GCC 7 and GCC 13.