]> granicus.if.org Git - clang/commit
Fix crash while parsing variable template with variadic template arguments
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 26 May 2016 12:55:34 +0000 (12:55 +0000)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 26 May 2016 12:55:34 +0000 (12:55 +0000)
commit1dcb4b9133fe4a2f370969ac64cef511e4feb135
treefbddb84221675c7b515ea942b852114ced34dee5
parent53caeaa52174bfb8080e2c781cba73611fc056f7
Fix crash while parsing variable template with variadic template arguments

It is only a crash if the compiler optimize for this!=nullptr because
LocalInstantiationScope::getPartiallySubstitutedPack checks if 'this' is null
(This is crashing when clang is compiled with GCC6)

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270845 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateVariadic.cpp
test/SemaCXX/cxx1y-variable-templates_top_level.cpp