Sema: Don't crash when specializing a global scope function in a class
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 9 Jan 2015 06:10:21 +0000 (06:10 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 9 Jan 2015 06:10:21 +0000 (06:10 +0000)
commit8c6db7056adf0779d708c1b4b8e7e01d7b3ccd92
tree680e569808a419610d63c814d25e0903d9288219
parent3c0f78a2fc31d0691dd20b8489d35928d87e998b
Sema: Don't crash when specializing a global scope function in a class

We assumed that class-scope specializations would result in a
CXXMethodDecl for that class.  However, globally qualified functions
will result in normal FunctionDecls.

llvm-svn: 225508
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaTemplate/instantiate-method.cpp