]> granicus.if.org Git - clang/commit
Sema: Allow 'constexpr' variables in range loops
authorMeador Inge <meadori@codesourcery.com>
Wed, 18 Feb 2015 18:34:59 +0000 (18:34 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 18 Feb 2015 18:34:59 +0000 (18:34 +0000)
commit6e4c907c67457f6779b721d67697260f7901f03a
treeef6ca8afffb7cf9e29f0a2f8ec7cc54d51910911
parentaec3dd6ae90332f885e76d55ca953b5b3b0bd7b5
Sema: Allow 'constexpr' variables in range loops

This fixes PR22492, which is in response to CWG issue #1204.
Per the CWG issue 'contexpr' variables are now allowed in
for range loops.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp