Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 04/26/2012 05:27 PM, Lubos Lunak wrote:
On Thursday 26 of April 2012, Tomáš Chvátal wrote:
Some users in Gentoo are reporting weird issue in l10ntools when using
gcc-4.4.

Please see the attached log for the issue.

Any idea how to resolve it?

../inc/tagtest.hxx:68: note: candidates are: TokenInfo&
TokenInfo::operator=(TokenInfo&)

  Assuming that gcc is not just lazy to report the signature properly, this is
wrong, there is const missing in the argument, and that's most probably
causing the problem. But I do not see any such operator there in the source,
so it looks like the autogenerated operator is wrong, i.e. compiler bug.

The autogenerated operator= would take non-const ref if any of the data members' operator= required that. The only suspiciously-looking one in TokenInfo is StringHashMap aProperties, which is a boost::unordered_map. Something wrong with the boost version maybe (assuming that the problem happens --with-system-boost)?

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.