]> granicus.if.org Git - clang/commit
Parse: Disable delayed template parsing for constexpr functions
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 23 Oct 2013 21:31:20 +0000 (21:31 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 23 Oct 2013 21:31:20 +0000 (21:31 +0000)
commit645526c3e42170e356f792b1bc0ac2acb65c26c4
tree36c76ceb92c36b5d434705aba4969859c28581c9
parent885d8bf8d06ddaf79ffe45a96aaa42621db44241
Parse: Disable delayed template parsing for constexpr functions

Commit r191484 treated constexpr function templates as normal function
templates with respect to delaying their parsing.  However, this is
unnecessarily restrictive because there is no compatibility concern with
constexpr, MSVC doesn't support it.

Instead, simply disable delayed template parsing for constexpr function
templates.  This largely reverts the changes made in r191484 but keeps
it's unit test.

This fixes PR17661.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193274 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaExpr.cpp
test/Parser/DelayedTemplateParsing.cpp