|Na-na, nanananana na na, na katamari damacy
||[Sep. 28th, 2006|04:56 pm]
|||||Jethro Tull - Thick as a Brick||]|
The best "real-life" Katamari Damacy depiction I've yet seen. (YouTube)
In other news, today I exploited a bug in GCC 3.4 for
material gain a porting project I'm working on. Haha.
Can you explain this bug?
It is described here
. (That's actually the post that clued me into the workaround. The alternative was actually changing the interface of a class from which a significant chunk of code inherits...)
yeah, but we wanted to hear how you exploited it!
The bug report details the exploit pretty well. We're in the process of porting some code to RHEL4, and so the code has to comply with a compiler upgrade, and we ran into the error that the bug report describes, where a default argument is not permitted to a function typedef.
So instead of creating a function pointer type that contains a default argument directly, I created a function type that contains the default argument, and then another typedef declaring the original function pointer type in terms of this new function type. And the bug is that GCC allows me to do that. (It's classified as an "allows-invalid" bug in their database.)
yeah, i wanna hear more details about this bug in the world's greatest program ever.