Open Quuxplusone opened 15 years ago
Bugzilla Link | PR5067 |
Status | NEW |
Importance | P enhancement |
Reported by | Török Edwin (edwin+bugs@etorok.eu) |
Reported on | 2009-09-27 02:52:22 -0700 |
Last modified on | 2013-04-14 11:48:39 -0700 |
Version | trunk |
Hardware | PC Linux |
CC | dgregor@apple.com, ganna@apple.com, gribozavr@gmail.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
You can call foo(X,X)... but I agree that this is almost certainly an error.
This and other iterator-validity checks would be really useful. To do them well, I think they will have to be done by the static analyzer; Clang's semantic analysis doesn't have the ability to track the state (singular, dereferenceable, past-the-end) or domain (e.g., container) of individual iterators.
Yeah, good point.
cloned to radar://12522707 for internal tracking