]> granicus.if.org Git - clang/commit
If we end up instantiating a function parameter whose default argument
authorDouglas Gregor <dgregor@apple.com>
Tue, 12 Oct 2010 18:23:32 +0000 (18:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 12 Oct 2010 18:23:32 +0000 (18:23 +0000)
commit8cfb7a39caa44797522773cf417ad9c1a6ffbc6f
tree4757657779dca88a0dc9b0fd768fce36341b4902
parent75c29a012793292ff4578015a9113bf086156d7f
If we end up instantiating a function parameter whose default argument
has not yet been parsed, note that the default argument hasn't been
parsed and keep track of all of the instantiations of that function
parameter. When its default argument does get parsed, imbue the
instantiations with that default argument. Fixes PR8245.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116324 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/CXX/class/class.mem/p1.cpp