This is an archive of the discontinued LLVM Phabricator instance.

Fix crash in BuildCXXDefaultInitExpr.
ClosedPublic

Authored by teemperor on Apr 29 2016, 5:22 AM.

Details

Summary
Fix crash in BuildCXXDefaultInitExpr when member of template class
has same name as the class itself.

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor updated this revision to Diff 55580.Apr 29 2016, 5:22 AM
teemperor retitled this revision from to Fix crash in BuildCXXDefaultInitExpr..
teemperor updated this object.
teemperor added reviewers: cfe-commits, rnk.
rnk accepted this revision.Apr 29 2016, 9:38 AM
rnk edited edge metadata.

lgtm

test/SemaCXX/pr27047-default-init-expr-name-conflict.cpp
6 ↗(On Diff #55580)

More reduced:

template <typename T> struct A { int A = 0; };
A<int> a;
This revision is now accepted and ready to land.Apr 29 2016, 9:38 AM
This revision was automatically updated to reflect the committed changes.