http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61101
Bug ID: 61101 Summary: snprintf not part of std Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: maxime.boissonneault at calculquebec dot ca Created attachment 32755 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32755&action=edit The output with -save-temps - the exact version of GCC; GCC 4.8.2 - the system type; CentOS 6.5 - the options given when GCC was configured/built; ../${SRCDIR}/configure CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" \ LDFLAGS="-L$PREFIX/lib" --prefix=$PREFIX \ --with-arch=native --with-pkgversion=$VERSION-colosse \ --enable-languages=c,c++,java,fortran,go --enable-shared \ --enable-static --enable-threads=posix --enable-multilib \ --enable-bootstrap --with-gmp=$PREFIX --with-mpfr=$PREFIX --with-mpc=$PREFIX \ --with-system-zlib - the complete command line that triggers the bug; g++ test.cpp -std=c++11 - the compiler output (error messages, warnings, etc.); and the preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, or, in the case of a bug report for the GNAT front end, a complete set of source files (see below). test.cpp: In function ‘int main()’: test.cpp:5:2: erreur: ‘snprintf’ is not a member of ‘std’ std::snprintf(test, 10, "%f", 2.); ^ test.cpp:5:2: note: suggested alternative: In file included from /software6/compilers/gcc/4.8.2/include/c++/4.8.2/cstdio:42:0, from test.cpp:1: /usr/include/stdio.h:385:12: note: ‘snprintf’ extern int snprintf (char *__restrict __s, size_t __maxlen,