__uuidof template emalation crash
GCC for 32-bit and 64-bit Windows with a real installer & updater
Brought to you by:
tdragon
current uuidof template emulation
#define __CRT_UUID_DECL(...) \
template<> inline const GUID &__mingw_uuidof<type>() \
{ \
return (const IID){l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \
} \
...</type>
return reference to local object, which leads to application crash in some situations. Next implementation fix this problem
#define __CRT_UUID_DECL(...) \
template<> inline const GUID &__mingw_uuidof<type>() { \
static const IID iid = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \
return iid; \
} \
...</type>
Anonymous
This is a MinGW bug, not a TDM-GCC bug.