Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix header inclusion order to avoid use of class before definition #17067

Merged
merged 1 commit into from
Mar 20, 2018

Conversation

aymarino
Copy link

Fixes the issue #17063

In the header rcwrefcache.h, there's a use of RCWCache::RCWCacheTraits, but RCWCache is defined in runtimecallablewrapper.h, which is included later so the class definition is not available. We build CoreCLR as part of regular regression testing for the MSVC compiler, and the build failed recently under the compiler's conformance mode, /permissive-, due to this source issue.

This fixes it by including the RCWRefCache header after the one that provides the RCWCache definition.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@jkotas jkotas merged commit 0597eed into dotnet:master Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants