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)
commitc85ed7e4a2a1f42a07e4940f38d7f365b662a1af
treeea604000f6718b9e700fe0f169422c4e9518ae93
parenta5ffd3f9940c8f80691df6451a811301cafd25a8
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.

llvm-svn: 193274
clang/lib/Parse/ParseCXXInlineMethods.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/Parser/DelayedTemplateParsing.cpp