retitle 369642 g++-4.0/alpha: -fvisibility-inlines-hidden segfaults on reference to static method thanks Minimal test case attached, bug title updated accordingly. Build with g++ -c -fvisibility-inlines-hidden on alpha to see the fun. Nice workaround for any of g++-4.0, g++-4.1, gcc-snapshot is to break out the definition of the cleanup() method so that it doesn't get inlined. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. vorlon@debian.org http://www.debian.org/
typedef void (*QtCleanUpFunction)();
void qAddPostRoutine(QtCleanUpFunction);
struct QLibrarySettings
{
public:
static void cleanup()
{
}
};
void mumble()
{
qAddPostRoutine(QLibrarySettings::cleanup);
}
Attachment:
signature.asc
Description: Digital signature