On Tue, Dec 11, 2007 at 07:03:53AM -0700, Martin Michlmayr wrote:
* Eugeniy Meshcheryakov <[EMAIL PROTECTED]> [2007-12-11 10:33]:> Sorry, yet another GCC 4.3 failure. Yes, I know. There is even patch for this bug in debian/patches.disabled/23-gcc-4.3-fixes . But it breaks compilation with current gcc. Any idea how to make it compile for both current gcc and gcc-snapshot?I don't know, but I'm CCing someone who might.
Okay. Either gcc-4.2 is broken, or gcc-4.3 is. I suspect it's the former, since gcc-4.3 complains loudly. Someone should file a bug.
One possible workaround (that I have only briefly tested) is to apply the patch, but only declare require<indexable *> in staptree.h, and actually move the definition of require<indexable *> to staptree.cxx. Then, if gcc-4.2 does instantiate it as extern, it will instantiate it only once, and there will not be multiple definitions.
-- brian m. carlson / brian with sandals: Houston, Texas, US +1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only a typesetting engine: http://crustytoothpaste.ath.cx/~bmc/code/thwack OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature