Parse: Don't crash when default argument in typedef consists of sole '='
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 13 Jan 2015 07:42:33 +0000 (07:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 13 Jan 2015 07:42:33 +0000 (07:42 +0000)
commitb3c6d52d3abb6595610798b45c932f42c9003265
tree0c381d9dc07f5caf2b448b5cfa61fe92cbf84ec1
parent26cc634dbfef1f8828f47066a163f9c07b4f741f
Parse: Don't crash when default argument in typedef consists of sole '='

We'd crash trying to make the SourceRange for the tokens we'd like to
highlight.  Don't assume there is more than one token makes up the
default argument.

llvm-svn: 225774
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/Parser/cxx-default-args.cpp