Closed GoogleCodeExporter closed 9 years ago
I wonder if this is the same as issue 25. Both of them are issues with
standard STL containers that hold pointers. But I think this may be different,
though, and have to do with rules about when nested-name-specifiers (the stuff
before the ::) are allowed to be forward-declared, which is never. However,
sub-parts of them can be, as in the example above.
Original comment by csilv...@gmail.com
on 29 Mar 2011 at 9:15
btw, the most useful way to report bugs of this form is with a patch to add a
test file to tests/ that currently fails under iwyu. I guess we need to add
XFAIL support to run_iwyu_tests to support this better. Then it's less work
for whoever fixes this up.
Ideally, the tests files would be minimal in that they wouldn't use STL headers
(which are a pain to debug in clang). Instead, you could write your own
templated class that (hopefully) exhibits the same problem.
Original comment by csilv...@gmail.com
on 29 Mar 2011 at 9:17
Sure, I'll start working on the tests.
Original comment by jhawk...@chromium.org
on 29 Mar 2011 at 9:20
Issue 25 has been merged into this issue.
Original comment by csilv...@gmail.com
on 31 Mar 2011 at 5:55
Never mind, I found a small test to add.
The problem is because of a bug in an optimization we have for dealing with
well-known types like set. This optimization ignores the * in some situations.
OK, all situations. I'm working on a fix, but I'm going on vacation tomorrow,
so it may be a little while.
Original comment by csilv...@gmail.com
on 31 Mar 2011 at 5:56
Should be fixed in r104.
Original comment by csilv...@gmail.com
on 6 Apr 2011 at 8:15
Works great, thanks!
Original comment by jhawk...@chromium.org
on 7 Apr 2011 at 7:50
Original issue reported on code.google.com by
jhawk...@chromium.org
on 29 Mar 2011 at 9:06Attachments: