Invocation of operator ++ does not get a location #11564
Closed
Description
| Bugzilla Link | 11192 |
| Resolution | FIXED |
| Resolved on | Feb 07, 2012 20:35 |
| Version | trunk |
| OS | Windows NT |
| Reporter | LLVM Bugzilla Contributor |
| CC | @akyrtzi,@DougGregor,@tkremenek |
Extended Description
If you run this you can see that the invocations of operator ++ gets while operator << has a valid location
// Command line: c-index-test -test-load-source all file.cpp
struct A
{
int value;
A & operator ++ () // preincrement
{
value += 1;
return (*this);
}
A & operator ++ (int) // postincrement
{
value += 2;
return (*this);
}
A & operator << (int rhs)
{
value = 23;
return (*this);
}
};
A a;
Activity