------- Comment #7 from pinskia at gcc dot gnu dot org 2008-12-29 21:02 ------- (In reply to comment #6) > (In reply to comment #2) > > It is *not* represented as an array on Alpha. > > But as a RECORD_TYPE. Following patch cures the warning:
But that is not correct as some nonPODs are structs too. In fact structs containing other nonPODs are still nonPODs. Structs that have non trivial constructors are also nonPODs. So the patch is in fact incorrect. if (! CLASS_TYPE_P (t)) return 0; /* other non-class type (reference or function) */ if (CLASSTYPE_NON_POD_P (t)) return 0; return 1; One of those two should be set correctly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31488