https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102204
--- Comment #2 from Ye Luo <xw111luoye at gmail dot com> --- User code has been written in mostly 5.0 fashion as 4.5 has too many restrictions. For most users, they only need a subset of 5.0 feature with up-to-date compilers and fully implemented 5.0 is not expected. Back to this issue, could the compiler just issue a warning instead of a full stop? In my case, bitwise copying of a struct is sufficient. Namely use the struct as if there is no virtual method. At least this unblock some potential users.