[Bug libstdc++/18644] [3.3/3.4/4.0 regression] -Wsynth warning in <complex>
bangerth at ices dot utexas dot edu
gcc-bugzilla@gcc.gnu.org
Fri Nov 26 04:33:00 GMT 2004
------- Additional Comments From bangerth at ices dot utexas dot edu 2004-11-26 04:33 -------
Subject: Re: [3.3/3.4/4.0 regression] -Wsynth warning
in <complex>
> The issue is not taking the address of the copy constructor, but the
> change in calling convention. It you declare a copy consttuctor, you
> change the ABI in the sense that the compiler is now forced to pass
> everything in stack, where it used to pass it in register.
Ah, ok, I didn't know about these subtleties.
> The diagnostic is nonsensical. The fix is to fix the diagnostic, not
> to paper over the problem.
That's certainly the best solution. -Wsynth should just not trigger in
libstdc++ headers.
Thanks
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18644
More information about the Gcc-bugs
mailing list