[Webkit-unassigned] [Bug 59261] Compile error with GCC 4.6.0, tries to assign unsigned& to bitfield

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 15:38:12 PDT 2011


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


Anders Carlsson <andersca at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #90814|review?                     |review+
               Flag|                            |




--- Comment #6 from Anders Carlsson <andersca at apple.com>  2011-04-26 15:38:12 PST ---
(From update of attachment 90814)
The patch looks correct, but I'd prefer a more generic comment; you'll get this error with any compiler whose standard library has an std::make_pair implementation that takes value references. How about something like:

// Newer versions of the STL have an std::make_pair function that takes rvalue references.
// When either of the parameters are bitfields, the C++ compiler will try to bind them as lvalues, which is invalid. To work around this, use unary "+" to make the parameter an rvalue.
// See https://bugs.webkit.org/show_bug.cgi?id=59261 for more details.

-- 
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