Re: GCC6: implicit casting triggers error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 04, 2016 at 01:36:50PM +0100, Sandro Mani wrote:
> Med builds are failing with
> 
> medfile_int_wrap.cc:11272:30: error: no matching function for call to 'std::vector<double, std::allocator<double> >::erase(SwigValueWrapper<__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > > >&)'
>    result = (arg1)->erase(arg2);
> 
> 
> A standalone version which fails to compile (ignoring the fact that arg2 is not initialized):

> ---------------------
> 
> GCC 5 compiles the code. GCC6 seems to require an explicit cast, even though
> 
> std::vector<double>::iterator it = arg2;
> 
> 
> works. GCC bug?

GCC 5 fails the same way if you compile with -std=c++11 or -std=c++14,
the latter is the default for GCC 6.

	Jakub
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux