[Webkit-unassigned] [Bug 27060] Type cast for first argument in make_pair()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 13 06:10:45 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27060


Janne Koskinen <koshuin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |koshuin at gmail.com




--- Comment #4 from Janne Koskinen <koshuin at gmail.com>  2009-08-13 06:10:44 PDT ---
>This error is apparently due to the compiler not properly resolving the
>unsigned type of the declared bitfield.

This was my assumption as well, but it doesn't seem to be true.
I made a small test program:

#include <iostream>
#include <utility>
class test{
public:
unsigned flag:1;
unsigned somefield:5;
};
using namespace std;

int main()
{
test a;
make_pair(a.flag,a.somefield);
return 1;
}

And this one passes with flying colors on WINSCW.

I'll try to narrow it down, but it does seem to be related to the curious
reoccuring template pattern that is used in class defining the bitfields.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list