foo.cpp:1:1: error: expected unqualified-id before numeric constant
1
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\exception:152:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:39,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:64:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\exception_ptr.h:95:30: error: field 'nullptr_t' has incomplete type
exception_ptr(nullptr_t) noexcept
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\exception_ptr.h:95:30: error: expected ';' at end of member declaration
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\exception_ptr.h:95:32: error: expected unqualified-id before 'noexcept'
exception_ptr(nullptr_t) noexcept
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:57:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_pair.h:59,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:64,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\char_traits.h:39,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:64:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:285:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
struct __is_nullptr_t_helper<std::nullptr_t>
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:48: error: template argument 1 is invalid
struct __is_nullptr_t_helper<std::nullptr_t>
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:32: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:32: note: suggested alternative:
In file included from c:\mingw\include\wchar.h:26:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:64:
c:\mingw\lib\gcc\mingw32\4.8.1\include\stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:57:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_pair.h:59,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:64,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\char_traits.h:39,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from foo.cpp:64:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:32: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
c:\mingw\lib\gcc\mingw32\4.8