In file included from mingw lib gcc mingw32 include mingw32 bits alloc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\c+
+allocator.h:33:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\allocator.
h:46,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h
:65,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from c:\mingw\include\gmpxx.h:29,
from culc.hpp:6,
from culc.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h: In instantiation
of 'void __gnu_cxx::new_allocator< <template-parameter-1-1> >::construct(_Up*,
_Args&& ...) [with _Up = __mpfr_struct [1]; _Args = {const __mpfr_struct (&)[1]}
; _Tp = __mpfr_struct [1]]':
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\alloc_traits.h:254:4: required
from 'static typename std::enable_if<std::allocator_traits<_Alloc>::__construct
_helper<_Tp, _Args>::value, void>::type std::allocator_traits<_Alloc>::_S_constr
uct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = __mpfr_struct [1]; _Args = {const __
mpfr_struct (&)[1]}; _Alloc = std::allocator<__mpfr_struct [1]>; typename std::e
nable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, v
oid>::type = void]'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\alloc_traits.h:393:57: require
d from 'static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_
traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&
, _Tp*, _Args&& ...) [with _Tp = __mpfr_struct [1]; _Args = {const __mpfr_struct
(&)[1]}; _Alloc = std::allocator<__mpfr_struct [1]>; decltype (_S_construct(__a
, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type e
rror>]'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:906:34: required
from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = __
mpfr_struct [1]; _Alloc = std::allocator<__mpfr_struct [1]>; std::vector<_Tp, _A
lloc>::value_type = __mpfr_struct [1]]'
culc.cpp:35:20: required from here
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h:120:4: error: par
enthesized initializer in array new [-fpermissive]
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h:120:4: error: no
matching function for call to '__mpfr_struct::__mpfr_struct(const __mpfr_struct
[1])'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h:120:4: note: cand
idates are:
In file included from culc.hpp:7:0,
from culc.cpp:1:
c:\mingw\include\mpfr.h:182:3: note: __mpfr_struct::__mpfr_struct()
} __mpfr_struct;
^
c:\mingw\include\mpfr.h:182:3: note: candidate expects 0 arguments, 1 provided
c:\mingw\include\mpfr.h:182:3: note: constexpr __mpfr_struct::__mpfr_struct(cons
t __mpfr_struct&)
c:\mingw\include\mpfr.h:182:3: note: no known conversion for argument 1 from '
const __mpfr_struct [1]' to 'const __mpfr_struct&'
c:\mingw\include\mpfr.h:182:3: note: constexpr __mpfr_struct::__mpfr_struct(__mp
fr_struct&&)
c:\mingw\include\mpfr.h:182:3: note: no known conversion for argument 1 from '
const __mpfr_struct [1]' to '__mpfr_struct&&'
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\c+
+allocator.h:33:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\allocator.
h:46,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\string:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:41,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h
:65,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from c:\mingw\include\gmpxx.h:29,
from culc.hpp:6,
from culc.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h: In instantiation
of 'void __gnu_cxx::new_allocator< <template-parameter-1-1> >::destroy(_Up*) [w
ith _Up = __mpfr_struct [1]; _Tp = __mpfr_struct [1]]':
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\alloc_traits.h:281:4: required
from 'static typename std::enable_if<std::allocator_traits<_Alloc>::__destroy_h
elper<_Tp>::value, void>::type std::allocator_traits<_Alloc>::_S_destroy(_Alloc&
, _Tp*) [with _Tp = __mpfr_struct [1]; _Alloc = std::allocator<__mpfr_struct [1]
>; typename std::enable_if<std::allocator_traits<_Alloc>::__destroy_helper<_Tp>:
:value, void>::type = void]'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\alloc_traits.h:405:23: require
d from 'static void std::allocator_traits<_Alloc>::destroy(_Alloc&, _Tp*) [with
_Tp = __mpfr_struct [1]; _Alloc = std::allocator<__mpfr_struct [1]>]'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\vector.tcc:422:66: required fr
om 'void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args
= {const __mpfr_struct (&)[1]}; _Tp = __mpfr_struct [1]; _Alloc = std::allocator
<__mpfr_struct [1]>]'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:911:27: required
from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = __
mpfr_struct [1]; _Alloc = std::allocator<__mpfr_struct [1]>; std::vector<_Tp, _A
lloc>::value_type = __mpfr_struct [1]]'
culc.cpp:35:20: required from here
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ext\new_allocator.h:124:29: error: re
quest for member '~__mpfr_struct [1]' in '* __p', which is of non-class type '__
mpfr_struct [1]'
destroy(_Up* __p) { __p->~_Up(); }
^
make: *** [culc.o] Error 1