Hello,<br><br>SemaCXX/underlying_type.cpp fails on Mingw/Msys with the following message:<br><br> Assertion failed: (PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned", file d:/clang/llvm/include/llvm/ADT/PointerIntPair.h, line 80<br>
<br>From this function:<br><br> void setPointer(PointerTy Ptr) {<br> intptr_t PtrVal<br> = reinterpret_cast<intptr_t>(PtrTraits::getAsVoidPointer(Ptr));<br> assert((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 &&<br>
"Pointer is not sufficiently aligned");<br> // Preserve all low bits, just update the pointer.<br> Value = PtrVal | (Value & ~PointerBitMask);<br> }<br><br>I don't know whether the problem only occurs on mingw/msys or also occurs on a "bare" windows system.<br>
<br>-- Matthieu.<br>