Menu

#150 __uuidof template emalation crash

closed
nobody
None
5
2012-09-27
2011-12-12
No

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>

Discussion

  • John E.

    John E. - 2012-09-15

    This is a MinGW bug, not a TDM-GCC bug.

     
  • John E.

    John E. - 2012-09-15
    • status: open --> closed
    • milestone: --> GCC_4.1.x
     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo