[Qt-interest] Q_ASSERT_X fails when not false...

Thiago Macieira thiago at kde.org
Tue Nov 30 23:36:13 CET 2010


On Tuesday, 30 de November de 2010 20:47:46 Eric Clark wrote:
> The code is in qvector.h and it seems to make sense, however, the debugger
> says the value of i is 2 and the value of d->size is 15. With these values
> the assertion should pass the check, but it doesn't. I get a failed
> assertion

Can you prove these values with the code?

Because it's one of two things, both compiler faults:

1) miscompilation

2) the debug info is wrong and therefore the debugger is showing garbage
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101130/3a4ff2be/attachment.bin 


More information about the Qt-interest-old mailing list