]> granicus.if.org Git - clang/commit
Fix PR12960 by not attempting to correct cases when we're not actually instantiatiati...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 28 May 2012 01:26:45 +0000 (01:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 28 May 2012 01:26:45 +0000 (01:26 +0000)
commit4872e1014844632083690cc1d021b95218a5023b
treec4ebaa0ea80f5ad49159d42005d262049de90ed7
parentfb527dcaba83b130ff7ef9fc454b548d15d1abe6
Fix PR12960 by not attempting to correct cases when we're not actually instantiatiating a template.

This comes up in the begin/end calls of a range-for (see the included test
case). Other suggestions are welcome, though this seems to do the trick without
regressing anything.

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