[oi-dev] g++ 4.7 headers issue

Alexander Pyhalov alp at rsu.ru
Sun Jun 2 18:38:14 UTC 2013


ken mays писал 2013-06-02 18:39:
> Hi Alexander,
> 

Hello.

> Looking at your notes....
> 
> 
> G++ tests (i.e. 4.7.3)
> 
> ---------
> 
> # of unexpected failures 17
> # of unresolved testcases 10
> 
> 
> Are the issues resolvable by fixing
> 
> iso/stdlib_iso.h
> iso/stdio_iso.h
> iso/math_iso.h
> 
> or do you see another resolution?

It seems that 8 unexpected failures may be fixed by introducing the 
declaration (or definition?) of double abs(double) in stdlib_iso.h. But 
it is already defined in math_iso.h. I don't know what logic should be 
used to avoid defining it twice. I'm not sure about other failures.
Two of them are ld - specific, it seems they occured because /usr/bin 
was earlier in my PATH than /usr/gnu/bin.
And I'm not sure about several other.

There are some more error messages from dejagnu logs:

In file included from ./g++.old-deja/g++.other/inline2.C:5:0:
/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/cmath:102:5: 
note: template<class _Tp> typename 
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type 
std::abs(_Tp)
/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/cmath:102:5: 
note:   template argument deduction/substitution failed:
/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/cmath: 
In substitution of 'template<class _Tp> typename 
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type 
std::abs(_Tp) [with _Tp = double]':
./g++.old-deja/g++.other/inline2.C:10:38:   required from here
/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/cmath:102:5: 
error: no type named '__type' in 'struct __gnu_cxx::__enable_if<false, 
double>'


/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/bits/stl_algo.h:5499:5: 
note: void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = 
__gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = 
std::pointer_to_binary_function<const E
xpr<int>, const Expr<int>, bool>]
/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../include/c++/4.7.3/bits/stl_algo.h:5499:5: 
note:   no known conversion for argument 3 from '<unresolved overloaded 
function type>' to 'std::pointer_to_binary_function<const Expr<int>, 
const Expr<int>, bool>'

If you want I can upload the whole test log somewhere.


---
System Administrator of Southern Federal University Computer Center








More information about the oi-dev mailing list