Closed Bug 819766 Opened 12 years ago Closed 12 years ago

nsEventStateManager.cpp:5461:14: error: use of overloaded operator '<' is ambiguous (with operand types 'int32_t' (aka 'int') and 'nsEventStateManager::WheelPrefs::Action')

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: regression)

Attachments

(1 file)

The changes in bug 786120 does not compile using clang 3.0 on Linux64:

content/events/src/nsEventStateManager.cpp:5461:14: error: use of overloaded operator '<' is ambiguous (with operand types 'int32_t' (aka 'int') and 'nsEventStateManager::WheelPrefs::Action')
  if (action < ACTION_NONE || action > ACTION_LAST) {
      ~~~~~~ ^ ~~~~~~~~~~~
content/events/src/nsEventStateManager.cpp:5461:14: note: built-in candidate operator<(int, float)
content/events/src/nsEventStateManager.cpp:5461:14: note: built-in candidate operator<(int, double)
... etc, about 80 more built-in candidates ...
Attached patch fixSplinter Review
Assignee: nobody → matspal
Attachment #690194 - Flags: review?(bugs)
Keywords: regression
Attachment #690194 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/bd3f5cf45700
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: