This is bug 5941: https://llvm.org/bugs/show_bug.cgi?id=5941
I copied the extra suggestions from the complete type case to the incomplete type case.
Differential D16949
Fix for: Bug 5941 - improve diagnostic for * vs & confusion ryee88 on Feb 6 2016, 1:25 PM. Authored by
Details
This is bug 5941: https://llvm.org/bugs/show_bug.cgi?id=5941 I copied the extra suggestions from the complete type case to the incomplete type case.
Diff Detail
Event TimelineComment Actions Since this is just a wording change, presumably the diagnostic is already Comment Actions Keeping the number of test files to a minimum makes sense. Couldn't find an existing test for this diagnostic. I did find a cxx-reference.cpp that tests reference diagnostics so this seems like a reasonable location for this new test. Comment Actions Are there not any existing cases that test this diagnostic? Could you just update some existing cases to cover this? (it looks like, in the same file, the test case added for PR 6117 could be expanded to test this as well, perhaps?) It looks like that's the original test for this diagnostic, so it'd be a good/right place to test the extra text and add any extra variants that have become relevant. Comment Actions Yeah you’re right about this one being the original variant. I missed it when I was reading through the tests in this file. I’ve reworked it to reflect the new variants. |