__func__ C++11 function's local predefined variable, won't compile
问题 The __func__ C++11 local predefined variable of a function does not compile in Visual Studio 2012 Professional (with Update 1 installed) with the default built-in Visual Studio 2012 (v110) compiler or the November 2012 CTP (v120_CTP_Nov2012) compiler. However, the editor does not complain with any red squiggly underline under __func__ . __func__ is supposed to give the name of its containing function, in this case foo , but this neither compiles nor make the editor complain: #include