When determining whether a DeclRefExpr is value-dependent when it
references a const variable of integral type, the initializer may be
in a different declaration than the one that name-lookup saw. Find the
initializer anyway. Fixes PR6045.

llvm-svn: 93514
2 files changed
tree: 63458197b7224e7afa3af9298cda8472d1f53014
  1. clang/
  2. compiler-rt/
  3. llvm/