fix #14795: FP unusedStructMember when type is a template parameter#8600
fix #14795: FP unusedStructMember when type is a template parameter#8600ludviggunne wants to merge 2 commits into
Conversation
|
I wonder why the TODO in boost.cpp is not resolved. |
This one? Line 235 in 8c14fc7 It's a different case for specializations because the tokens are pasted together: |
I actually misread that code, the template specialization cannot use the struct member. The type (or an object thereof) is used in the |
3567b24 to
97146ef
Compare
| ASSERT_EQUALS("", errout_str()); | ||
|
|
||
| checkStructMemberUsage("struct S { int i; };\n" | ||
| "int f() { A<S> *a = nullptr; (void) a; }\n"); |
There was a problem hiding this comment.
would it make sense to add an example where the const keyword is used also?
No description provided.