[Sema] Don't crash if array bound calculation overflowed constexpr array
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 18 Apr 2015 04:55:51 +0000 (04:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 18 Apr 2015 04:55:51 +0000 (04:55 +0000)
commitbc4cc14cd77bf0e4bf9eac056ca3773d6be85471
treecd29be3472691a84eb7a5b879ce5587aae2448dc
parent45951a662644f5a5e021806e8a75984115b9ebef
[Sema] Don't crash if array bound calculation overflowed constexpr array

We didn't correctly expect a QualifiedTypeLoc when faced with fixing a
variable array type into a constant array type.

Differential Revision: http://reviews.llvm.org/D8958

llvm-svn: 235251
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/basic/basic.types/p10.cpp