Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for looking into this, that's a rather amusing bug.
clang/lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
3398–3399 | No need to look at isInstField, it's already tested above on line 3365. | |
clang/test/SemaCXX/class.cpp | ||
219 ↗ | (On Diff #412654) | Can you also add test cases for: static int k<12>; void f<12>(); To make sure we diagnose it the same way, both in a non-template class and within a templated class. |
Comment Actions
- Fix redundant check
- move test to p17.cpp which seems more approriate
- add a couple of tests
Comment Actions
Do we have a test somewhere to check the variable template specialization case to make sure that didn't break? Otherwise LGTM.
Comment Actions
Thanks for the review.
It seems fairly well covered in clang/test/SemaCXX/cxx1y-variable-templates_in_class.cpp
Comment Actions
LGTM (I'm a bit sad about the diagnostic differences, but I understand why they're different a bit better now, so this is fine.)
No need to look at isInstField, it's already tested above on line 3365.