]> granicus.if.org Git - clang/commit
PR18283: If a const variable of integral or enumeration type is
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 25 Jan 2014 20:50:08 +0000 (20:50 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 25 Jan 2014 20:50:08 +0000 (20:50 +0000)
commit7c5b078aa4580de7b0202d72bd0b25269b00f5b5
treee9640635f1d1a9b0bb5aebce89cc8d977b9958f3
parent92e49c2805398d4cbeb86f620ad407c153262562
PR18283: If a const variable of integral or enumeration type is
initialized from a constant expression in C++98, it can be used in
constant expressions, even if it was brace-initialized. Patch by
Rahul Jain!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression.cpp