Closed Bug 1181382 Opened 9 years ago Closed 9 years ago

Building with clang tip fails: "declaration conflicts with target of using declaration already in scope" (Promise)

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
blocker

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jruderman, Assigned: jruderman)

Details

Attachments

(1 file)

In file included from /Users/jruderman/builds/mozilla-central-asan-opt/dom/base/Unified_cpp_dom_base1.cpp:137: In file included from /Users/jruderman/trees/mozilla-central/dom/base/Navigator.cpp:42: ../../dist/include/mozilla/dom/MobileMessageManager.h:17:1: error: declaration conflicts with target of using declaration already in scope class Promise; ^ ../../dist/include/mozilla/dom/Promise.h:73:7: note: target of using declaration class Promise : public nsISupports, ^ /Users/jruderman/trees/mozilla-central/dom/base/DOMRequest.cpp:22:21: note: using declaration using mozilla::dom::Promise; ^
This seems to fix it. The offending line was added in https://hg.mozilla.org/mozilla-central/rev/e7150eb09fa3
Attachment #8630811 - Flags: review?(htsai)
Attachment #8630811 - Flags: feedback?(sawang)
Comment on attachment 8630811 [details] [diff] [review] patch suggested by heycam Review of attachment 8630811 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the catch.
Attachment #8630811 - Flags: review?(htsai) → review+
Comment on attachment 8630811 [details] [diff] [review] patch suggested by heycam Review of attachment 8630811 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the fix.
Attachment #8630811 - Flags: feedback?(sawang) → feedback+
Assignee: nobody → jruderman
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: