Originally reported on Google Code with ID 89
What steps will reproduce the problem?
1. $ python run_iwyu_tests template_args
What is the expected output? What do you see instead?
Expected: success.
Actual: AssertionError: tests/template_args.cc:18: Unexpected diagnostic:
IndirectClass is defined in "tests/indirect.h", which isn't directly
#included (for autocast).
This is because all classes are erroneously classified as having a conversion constructor.
For some reason an implicit move ctor is generated, which tripped up our conversion
ctor detection. I thought IWYU ran in C++03 mode?
Attached patch do not treat implicit move ctors as conversion ctors. Two more tests
pass for MSVC, I haven't been able to try other platforms.
Reported by kim.grasman on 2013-01-01 22:29:15
- Attachment: conversionctor.patch
该提问来源于开源项目:include-what-you-use/include-what-you-use