Closed
Bug 525205
Opened 15 years ago
Closed 15 years ago
layout/style/nsStyleAnimation.cpp failed to compile with Sun Studio and gcc 4.0
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: ginnchen+exoracle, Assigned: dbaron)
References
Details
Attachments
(1 file, 3 obsolete files)
2.08 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
"../../../layout/style/nsStyleAnimation.cpp", line 516: Error: Pointer type needed instead of nsAutoPtr<nsCSSValuePair>.
"../../../layout/style/nsStyleAnimation.cpp", line 516: Error: Pointer type needed instead of nsAutoPtr<nsCSSValuePair>.
"../../../layout/style/nsStyleAnimation.cpp", line 522: Error: Pointer type needed instead of nsAutoPtr<nsCSSValuePair>.
"../../../layout/style/nsStyleAnimation.cpp", line 522: Error: Pointer type needed instead of nsAutoPtr<nsCSSValuePair>.
4 Error(s) detected.
Attachment #409056 -
Flags: review?(dbaron)
Assignee | ||
Comment 2•15 years ago
|
||
This is ugly.
Would it also fix the error if you defined an operator->* on nsAutoPtr<T>, i.e.:
template<class U>
U&
operator->*(U T::* aMember)
{
return get()->*aMember;
}
as a public member of nsAutoPtr<T>?
Assignee | ||
Comment 3•15 years ago
|
||
(And if that doesn't work, what error do you get?)
Assignee | ||
Comment 4•15 years ago
|
||
People are also seeing this on gcc 4.0.1:
/Users/moztest/comm/main/src/mozilla/layout/style/nsStyleAnimation.cpp:516: error: no match for ‘operator->*’ in ‘result ->* member’
/Users/moztest/comm/main/src/mozilla/layout/style/nsStyleAnimation.cpp:522: error: no match for ‘operator->*’ in ‘result ->* member’
Assignee | ||
Comment 5•15 years ago
|
||
Assignee | ||
Comment 6•15 years ago
|
||
This fixes the error on gcc 4.0.1, per smontagu.
I didn't add to nsAutoArrayPtr, even though it has an operator->; I think it probably shouldn't have that operator->, but that's more than I want to attack right now.
Assignee: ginn.chen → dbaron
Attachment #409056 -
Attachment is obsolete: true
Attachment #409101 -
Flags: review?(benjamin)
Attachment #409056 -
Flags: review?(dbaron)
Assignee | ||
Updated•15 years ago
|
Attachment #409101 -
Flags: review?(benjamin)
Assignee | ||
Comment 7•15 years ago
|
||
This one compiles on Windows, and is better anyway.
Attachment #409101 -
Attachment is obsolete: true
Attachment #409159 -
Flags: review?(benjamin)
Assignee | ||
Comment 8•15 years ago
|
||
Well, except some of the Windows tinderboxes hit an ICE compiling TestWinTSF.cpp with that version. Maybe I should just #ifndef _MSC_VER.
Assignee | ||
Comment 9•15 years ago
|
||
And it would also be good to know whether this patch actually fixes the error on Sun Studio.
Reporter | ||
Comment 10•15 years ago
|
||
Yes, it works with Sun Studio.
Thanks!
Assignee | ||
Comment 11•15 years ago
|
||
I'm planning to land this shortly, since it fixes broken builds for a bunch of people, but I'm still hoping for after-the-fact review.
Attachment #409159 -
Attachment is obsolete: true
Attachment #409272 -
Flags: review?(benjamin)
Attachment #409159 -
Flags: review?(benjamin)
Assignee | ||
Updated•15 years ago
|
Summary: layout/style/nsStyleAnimation.cpp failed to compile with Sun Studio → layout/style/nsStyleAnimation.cpp failed to compile with Sun Studio and gcc 4.0
Assignee | ||
Comment 12•15 years ago
|
||
Comment 13•15 years ago
|
||
Comment on attachment 409272 [details] [diff] [review]
patch to nsAutoPtr and nsRefPtr
bah, that's ugly, but that's C++ for you
Attachment #409272 -
Flags: review?(benjamin) → review+
Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•