GCC 8 is a major release of the GNU Compiler collection first released in 2018.
GCC 8 added a -Wstringop-truncation warning. From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82944 : The -Wstringop-truncation warning added in …
I'm using gcc 8.2.1 and trying to build this code: std::string dir = "Documents"; char * _tempname = static_cast <char*> (…