]> granicus.if.org Git - clang/commit
Fix SemaTemplate/instantiate-field.cpp after r261297.
authorNico Weber <nicolasweber@gmx.de>
Fri, 19 Feb 2016 02:51:07 +0000 (02:51 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 19 Feb 2016 02:51:07 +0000 (02:51 +0000)
commitb26af68557221b477c6e5db853c51c1818434de8
tree21e7e623ee4a260f6d12f1e1d34b3d2b33e0c6ca
parent309e7e9be3b249095885c91b0928d183bee9ef6f
Fix SemaTemplate/instantiate-field.cpp after r261297.

For templates, fields can have incomplete types:

  template <class T>
  struct A2 {
    struct B;
    B b;
  };

Don't try to touch the DefinitionData of those fields.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261301 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclCXX.cpp