]> granicus.if.org Git - clang/commit
If a static data member of a class template which could be used in a constant
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 15 Feb 2012 02:42:50 +0000 (02:42 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 15 Feb 2012 02:42:50 +0000 (02:42 +0000)
commit37ce0104b182c9410cf2a76fe5a63a81dac876ac
tree7ae01b946200267b82d4c58b27551bd75cd5dce1
parent83587db1bda97f45d2b5a4189e584e2a18be511a
If a static data member of a class template which could be used in a constant
expression is referenced, defined, then referenced again, make sure we
instantiate it the second time it's referenced. This is the static data member
analogue of r150518.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150560 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaTemplate/constexpr-instantiate.cpp