-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix base_nocompile_tests on Windows.
The error message when downcasting a derived class that multiply inherited from SupportsWeakPtr differed on Windows; instead of producing a "no matching function" message, it produced the much more confusing "use of member 'AsWeakPtrImpl' before its declaration is a Microsoft extension [-Wmicrosoft-template]". Change the way we detect the SupportsWeakPtr base to something that produces the same error on all platforms (and, hopefully, one that is clearer about its cause). Bug: 1442625 Change-Id: I2de8d247c528a2afb36c3e65d4c4a2bca6f35bdc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4814291 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188633}
- Loading branch information
Showing
2 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters