http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55513
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Summary|[4.7 Regression] Incorrect |[4.7/4.8 Regression] |snprintf folding when |Incorrect snprintf folding |building with -std=c++0x |when building with | |-std=c++0x --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-28 14:25:44 UTC --- With const int strLength = snprintf(str, 10, "Hello"); instead it fails also on the trunk, with sizeof(str) it has been "fixed" by my http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192141 changes.