TestWinTSF.cpp fails to compile on new mingw.

RESOLVED FIXED in mozilla1.9.3a1

Status

()

Core
Widget
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: Jacek Caban, Assigned: Jacek Caban)

Tracking

Trunk
mozilla1.9.3a1
x86
Other
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
Created attachment 418726 [details] [diff] [review]
fix

mingw (compiled from 4.4 SVN GCC branch) fails with error:

widget/tests/TestWinTSF.cpp:55:
../../dist/include/nsAutoPtr.h: In member function 'U& nsRefPtr<T>::operator->*(U V::*) [with U = PRBool(), V = TestApp, T = TestApp]':
/home/jacek/mozilla-build/wine-gecko-git/widget/tests/TestWinTSF.cpp:1427:   instantiated from here
../../dist/include/nsAutoPtr.h:1110: error: invalid use of non-static member function

It looks surprisingly, but the workaround is simply avoiding using ->* operator. Both commenting it in nsAutoPtr and using *() operator workaround it. I've attached the second solution.
(Assignee)

Updated

9 years ago
Attachment #418726 - Attachment is patch: true
Attachment #418726 - Flags: review?(chenn)
(Assignee)

Updated

9 years ago
Blocks: 421095
Comment on attachment 418726 [details] [diff] [review]
fix

Thanks!
Attachment #418726 - Flags: review?(chenn) → review+
(Assignee)

Updated

9 years ago
Keywords: checkin-needed

Updated

9 years ago
Assignee: nobody → jacek
Pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/8eb57fa656b8.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
You need to log in before you can comment on or make changes to this bug.