]> granicus.if.org Git - clang/commit
PR20346: fix aggregate initialization / template instantiation bug:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jul 2014 23:12:06 +0000 (23:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jul 2014 23:12:06 +0000 (23:12 +0000)
commitbfd892e216c977ddcb15b3a290b312459a313138
treee387c97781fa197b6369f9b45d5d69cc5d9df3f1
parentcc6546f2b2336ae3fe3086b404a837be4d2a4b9c
PR20346: fix aggregate initialization / template instantiation bug:

If, during the initial parse of a template, we perform aggregate initialization
and form an implicit value initialization for an array type, then when we come
to instantiate the template and redo the initialization step, we would try to
match the implicit value initialization up against an array *element*, not to
the complete array.

Remarkably, we've had this bug since ~the dawn of time, but only noticed it
recently.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213332 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaTemplate/instantiate-decl-init.cpp