[GCC-XML] wrong artificial op=()

Axel Naumann Axel.Naumann at cern.ch
Wed Oct 1 11:35:08 EDT 2008


Hi Brad,

On 2008-10-01 17:15, Brad King wrote:
>> the XML file contains an artificial operator=() for the classes S, T, V, and W.
>> This assignment operator should not exist according to the standard
>> [class.copy], 12.8.12. Both GCC 4.3 and MSVC 9.0 will refuse to compile code
>> that requires the implicit definition of these operators:
> [snip]
>> Could these operators be suppressed, please?
>
> I've come up with a hack that pretends these artifical methods are
> called, suppresses any resulting error messages, and then discards the
> methods if errors occurred.  It seems to work for the examples you provided.

Fantastic! I confirm that these ops are now suppressed, even in our real case.
Thanks a lot for your blazingly fast help!

Cheers, Axel.




More information about the gccxml mailing list