Take following example: struct Priority_Task { virtual ~Priority_Task (void); }; Priority_Task tasks[2];
See PR 22368 for the patch to detect this. pr22481.2.cc: In function 'void __static_initialization_and_destruction_0(int, int)': pr22481.2.cc:7: error: types mismatch in comparsion struct Priority_TaskD.1716[2] * struct Priority_TaskD.1716 * &tasksD.1734 == D.1760; -- Summary: C++ front-end produces mis-match types in EQ_EXPR (array deconstructor) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org OtherBugsDependingO 22368 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22494