Bug#831125: polygraph: FTBFS with GCC 6: ContainerBodyIter.cc:75:22: error: no match for 'operator!=' (operand types are 'ofixedstream' and 'int')

2016-11-12 Thread Chris Lamb
tags 831125 + pending
thanks

Uploaded. :)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#831125: polygraph: FTBFS with GCC 6: ContainerBodyIter.cc:75:22: error: no match for 'operator!=' (operand types are 'ofixedstream' and 'int')

2016-07-14 Thread Lucas Nussbaum
Source: polygraph
Version: 4.3.2-3
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64

Hi,

During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg7.html

Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H   -I../.. -I../../src -I../.. -I../../src -Wdate-time 
> -D_FORTIFY_SOURCE=2 -I/usr/include  -g -O2 -fPIE -fstack-protector-strong 
> -Wformat -Werror=format-security -c -o ContainerBodyIter.o 
> ContainerBodyIter.cc
> ContainerBodyIter.cc: In member function 'Size ContainerBodyIter::embed()':
> ContainerBodyIter.cc:75:22: error: no match for 'operator!=' (operand types 
> are 'ofixedstream' and 'int')
>   const bool fit = os != 0;
>~~~^~~~
> ContainerBodyIter.cc:75:22: note: candidate: operator!=(int, int) 
> ContainerBodyIter.cc:75:22: note:   no known conversion for argument 1 from 
> 'ofixedstream' to 'int'
> In file included from /usr/include/c++/6/iosfwd:40:0,
>  from ../../src/xstd/h/iosfwd.h:12,
>  from ../../src/xstd/Time.h:9,
>  from ../../src/base/polygraph.h:17,
>  from ContainerBodyIter.cc:6:
> /usr/include/c++/6/bits/postypes.h:221:5: note: candidate: template _StateT> bool std::operator!=(const std::fpos<_StateT>&, const 
> std::fpos<_StateT>&)
>  operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
>  ^~~~
> /usr/include/c++/6/bits/postypes.h:221:5: note:   template argument 
> deduction/substitution failed:
> ContainerBodyIter.cc:75:25: note:   'ofixedstream' is not derived from 'const 
> std::fpos<_StateT>'
>   const bool fit = os != 0;
>  ^
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>  from /usr/include/c++/6/bits/char_traits.h:39,
>  from /usr/include/c++/6/ios:40,
>  from ../../src/xstd/h/iostream.h:13,
>  from ../../src/xstd/Size.h:9,
>  from ../../src/base/polygraph.h:18,
>  from ContainerBodyIter.cc:6:
> /usr/include/c++/6/bits/stl_pair.h:376:5: note: candidate: template _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, 
> const std::pair<_T1, _T2>&)
>  operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
>  ^~~~
> /usr/include/c++/6/bits/stl_pair.h:376:5: note:   template argument 
> deduction/substitution failed:
> ContainerBodyIter.cc:75:25: note:   'ofixedstream' is not derived from 'const 
> std::pair<_T1, _T2>'
>   const bool fit = os != 0;
>  ^
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>  from /usr/include/c++/6/bits/char_traits.h:39,
>  from /usr/include/c++/6/ios:40,
>  from ../../src/xstd/h/iostream.h:13,
>  from ../../src/xstd/Size.h:9,
>  from ../../src/base/polygraph.h:18,
>  from ContainerBodyIter.cc:6:
> /usr/include/c++/6/bits/stl_iterator.h:304:5: note: candidate: template _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, 
> const std::reverse_iterator<_Iterator>&)
>  operator!=(const reverse_iterator<_Iterator>& __x,
>  ^~~~
> /usr/include/c++/6/bits/stl_iterator.h:304:5: note:   template argument 
> deduction/substitution failed:
> ContainerBodyIter.cc:75:25: note:   'ofixedstream' is not derived from 'const 
> std::reverse_iterator<_Iterator>'
>   const bool fit = os != 0;
>  ^
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>  from /usr/include/c++/6/bits/char_traits.h:39,
>  from /usr/include/c++/6/ios:40,
>  from ../../src/xstd/h/iostream.h:13,
>  from ../../src/xstd/Size.h:9,
>  from ../../src/base/polygraph.h:18,
>  from ContainerBodyIter.cc:6:
> /usr/include/c++/6/bits/stl_iterator.h:354:5: note: candidate: template _IteratorL, class _IteratorR> bool std::operator!=(const 
> std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
>  operator!=(const reverse_iterator<_IteratorL>& __x,
>  ^~~~
> /usr/include/c++/6/bits/stl_iterator.h:354:5: note:   template argument 
> deduction/substitution failed:
> ContainerBodyIter.cc:75:25: note:   'ofixedstream' is not derived from 'const 
> std::reverse_iterator<_Iterator>'
>   const bool fit = os != 0;
>  ^
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>  from /usr/include/c++/6/bits/char_traits.h:39,
>  from /usr/include/c++/6/ios:40,
>