On Mon, Mar 1, 2010 at 15:29, Thiago Macieira <thiago at kde.org> wrote:
> Hi Stefan
>
> I understand quite well what aliasing means and I still think that this is a 
> compiler bug.

Hi Thiago,

I understand unions.

Please read this thread. There's a post by Paul Floyd which contains a
link explaining why the GCC developers believe that this GCC specific
feature, and also why it is non-portable. If you disagree with the GCC
deveopers, you could discuss it with them.

Also, please read the Trolltech code in src/corelib/thread/qmutex.h :

inline QMutex *mutex() const
{
return reinterpret_cast<QMutex *>(val & ~quintptr(1u));
}



Thank you.

--Stefan

-- 
Stefan Teleman
KDE e.V.
stefan.teleman at gmail.com

Reply via email to