in centos eclipse. Got a bug says "function runtime_error could not be resolved". I added -std=c++11 or -std=c++0x in the settings and rebuild the index. (see Multiple "could not be resolved" problems using Eclipse with minGW ) it still shows a bug in the CDT. But in my makefile I added -std=c++0x it got compiled with no error.
the line has the bug is throw runtime_error("error msg"); I included those header files
#include <cerrno>
#include <system_error>
using namespace std;
void main()
{
throw runtime_error("blabla");
}