On May 9, 2015 6:30:49 AM GMT+02:00, Jason Merrill <ja...@redhat.com> wrote: >One C++11 compatibility issue that turns up a lot in the GCC sources is > >that in C++98, > >#define BAR "bar" >const char *p = "foo"BAR; > >is well-formed, giving p the value "foobar". But in C++11 this is a >user-defined literal with the suffix BAR, which is ill-formed because >there is no BAR suffix defined. > >-Wc++11-compat didn't warn about this, which I'm fixing with the first >patch. > >The second patch fixes all the occurrences in GCC. > >The third patch fixes the warning to say "-Wc++11-compat" rather than >"-Wc++0x-compat". > >The fourth patch fixes a few G++ tests that were failing with the >compiler defaulting to C++11. > >Tested x86_64-cp-linux-gnu, applying to trunk.
Hmm, I wonder if we want to bootstrap with explicit -std=gnu04, our host compiler requirement. Otherwise we'll silently sneak in C++11 features when that becomes the default? Richard.