https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[6 Regression] Wrong |Wrong -Wattributes on array |-Wattributes on array of |of function pointers |function pointers | --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #1) > GCC 5 doesn't warn > > typedef void (*func) (int, int) __attribute__ ((regparm (2))); > > and GCC 6 does. Never mind. Pilot error.