http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51480
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-09 09:58:12 UTC --- Visual Studio is not a real C++ compiler. Try http://comeaucomputing.com/tryitout/ or http://llvm.org/demo/ Your code is not valid C++, sorry.