gcc 4.9 allows the following code, but gcc 4.8 and clang 3.5.0 reject it.
void foo(auto c)
{
std::cout << c.c_str();
}
I get warning: ISO C++ forbids use of 'auto' in parameter declaration [-Wpedantic]
in 4.9 but in 4.8 and clang I get error: parameter declared 'auto'
.