https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82526
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor Status|UNCONFIRMED |NEW Last reconfirmed| |2021-12-17 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Clang reports: <source>:9:3: error: constructor for 'Rectangle' must explicitly initialize the member 'mTopLeft' which does not have a default constructor Rectangle(int x1, int x2, int y1, int y2) ^ <source>:14:9: note: member is declared here Point mTopLeft; ^ <source>:2:7: note: 'Point' declared here class Point { ^ Which might be better.