This fixes http://llvm.org/PR49736 caused by implementing http://wg21.link/P1102 (https://reviews.llvm.org/rG0620e6f4b76a9725dbd82454d58c5a68a7e47074), by correctly allowing requires-clause only:
- directly after template-parameter-list
- after lambda-specifiers iff parameter-declaration-clause is present (2nd kind of lambda-declarator)
Rather than add this in both branches, I'd say to hoist it out of the branches and put it after the else if below (before the declaration of ScopeFlags).