https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77477
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|error-recovery |diagnostic --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Oh actually even then it isn't valid, because you use size_t but don't include <stddef.h> or anything that is guaranteed to define size_t in the global namespace. You should #include <stddef.h> or use std::size_t instead.