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)
commitc4c0e8aa9ab4e0a8b4c9dd74a00e0757bccadea0
treeec54f1dae5aac639a72c4e92d3c079247d44895b
parent7fb195b683ba1d4627da76707bd1a7d1c611dab5
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.

llvm-svn: 157553
clang/lib/Sema/SemaExpr.cpp
clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp