https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65390
Kai Tietz <ktietz at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code CC| |ktietz at gcc dot gnu.org --- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> --- This sample is undefined behavior. It will use delete on the allocated memory, and not delete [] as it would need. Additionally the type 'int [n]' is no valid type for template argument.