GCC: avoid GCC getting confused with wrong using resolution in CrossThreadPersistent
In the method to assign a CrossThreadWeakPersistent<U> to a CrossThreadPersistent<T>, there is a call to the parent class implementation of Get. It uses Parent, that is, in CrossThreadPersistent<T> an alias to its parent. GCC resolves it as that, but that's wrong, and it should resolve to the parent of CrossThreadWeakPersistent<U>. To avoid the problem, we define in that method ParentU resolving to the right parent, and use a static cast to it. Bug: 819294 Change-Id: I0152dac92d4a28eb1f1abbc56473204b62f33797 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412138Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: José Dapena Paz <jdapena@igalia.com> Cr-Commit-Position: refs/heads/master@{#807452}
Showing
Please register or sign in to comment