Closed Bug 536259 Opened 15 years ago Closed 15 years ago

TestWinTSF.cpp fails to compile on new mingw.

Categories

(Core :: Widget, defect)

x86
Other
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: jacek, Assigned: jacek)

References

Details

Attachments

(1 file)

Attached patch fixSplinter Review
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.
Attachment #418726 - Attachment is patch: true
Attachment #418726 - Flags: review?(chenn)
Blocks: 421095
Comment on attachment 418726 [details] [diff] [review]
fix

Thanks!
Attachment #418726 - Flags: review?(chenn) → review+
Keywords: checkin-needed
Assignee: nobody → jacek
Pushed to m-c: http://hg.mozilla.org/mozilla-central/rev/8eb57fa656b8.
Status: NEW → RESOLVED
Closed: 15 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.

Attachment

General

Creator:
Created:
Updated:
Size: