Closed Bug 557784 Opened 15 years ago Closed 15 years ago

Failed to build nsCommentNode.cpp on OpenSolaris

Categories

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

x86
Solaris
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: eagle.lu, Assigned: eagle.lu)

Details

Attachments

(1 obsolete file)

When build TB trunk code. I got following errro: /home/brian/moz-ws/community/0407/comm-central/mozilla/content/base/src/nsCommentNode.cpp", line 109: Error: Overloading ambiguity between "Implements_nsINode(nsINode*)" and "Implements_nsINode(void*)". The root cause is that Sun compiler (SunStudio 12) doesn't bind Implements_nsInode((nsCommentNode*)0) to Implements_nsINode(nsINode*)
Assignee: nobody → brian.lu
Attachment #437539 - Flags: review?(jst)
Attachment #437539 - Flags: superreview?(peterv)
Attachment #437539 - Flags: review?(jst)
Attachment #437539 - Flags: review+
Comment on attachment 437539 [details] [diff] [review] cast nsnull to #interface instead of #class Looks right to me, but peterv should double check this.
I don't see how that works? We need to know if _class implements _interface, but passing (_interface)0 will never call the void* variant if the _class doesn't implement _interface.
This is a sun compiler bug. So close it.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Attachment #437539 - Attachment is obsolete: true
Attachment #437539 - Flags: superreview?(peterv)
Attachment #437539 - Flags: review+
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: