]> granicus.if.org Git - clang/commit
When determining whether a reference to a static data member is an
authorDouglas Gregor <dgregor@apple.com>
Sun, 1 Nov 2009 20:32:48 +0000 (20:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 1 Nov 2009 20:32:48 +0000 (20:32 +0000)
commitcf3293eaeb3853d12cff47e648bbe835004e929f
tree14b48e79cfb981e7df5e1bc23622096f478f2c3d
parent7a343142901f7f6bd1965051a24ae6a12c6f2148
When determining whether a reference to a static data member is an
integral constant expression, make sure to find where the initializer
was provided---inside or outside the class definition---since that can
affect whether we have an integral constant expression (and, we need
to see the initializer itself).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85741 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-declref-ice.cpp