]> granicus.if.org Git - clang/commit
Don't crash on 'decltype(auto)::'. Rather than treating it as a meaningless
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 8 Feb 2017 19:58:48 +0000 (19:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 8 Feb 2017 19:58:48 +0000 (19:58 +0000)
commitbb6cfd425256f3d1fef0874834820784dc67a852
tree68dad48b73abd8fde6caaf65204d6c3548b6fae3
parentd8a3bf2adbd8041b7f6199fea82b0533095b2e97
Don't crash on 'decltype(auto)::'. Rather than treating it as a meaningless
nested-name-specifier (as the standard appears to require), treat it as the
type specifier 'decltype(auto)' followed by a nested-name-specifier starting
with '::'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExprCXX.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp