This is an archive of the discontinued LLVM Phabricator instance.

Combine instantiation context of field initializer with context of class.
ClosedPublic

Authored by sepavloff on Apr 24 2015, 10:51 AM.

Details

Summary

Inclass initializer is instantiated in its own LocalInstantiationScope. It
causes problems when instantiating local classes - when instantiation scope
is searched for DeclContext of the field, the search fails. As a solution,
the instantiation scope of field initializer is combined with its outer
scope.

This patch fixes PR23194.

Diff Detail

Repository
rL LLVM

Event Timeline

sepavloff updated this revision to Diff 24402.Apr 24 2015, 10:51 AM
sepavloff retitled this revision from to Combine instantiation context of field initializer with context of class..
sepavloff updated this object.
sepavloff edited the test plan for this revision. (Show Details)
sepavloff added a subscriber: Unknown Object (MLST).
rsmith accepted this revision.Apr 27 2015, 4:28 PM
rsmith added a reviewer: rsmith.
rsmith added a subscriber: rsmith.

LGTM

This revision is now accepted and ready to land.Apr 27 2015, 4:28 PM
This revision was automatically updated to reflect the committed changes.