Details
- Reviewers
erichkeane - Group Reviewers
Restricted Project - Commits
- rG5fc73b7502fb: [clang] Add test for CWG1111
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/CXX/drs/dr11xx.cpp | ||
---|---|---|
31 | Can you also add the last example (with struct A) from the issue, and find a way to confirm that it is calling the right version? | |
clang/www/cxx_dr_status.html | ||
6476 | Were you able to track down which patch fixed this in clang 6? I also don't think we can mark this as 'full' support, if its still broken in C++98. Unless we can find a good reason this wasn't/wont be done for C++98 as well, I don't know if we can mark this as 'done'. |
clang/www/cxx_dr_status.html | ||
---|---|---|
6476 | We can mark it as partial and put the reason in the details. I'm not certain if the python script has a way to do that easily or not. |
clang/www/cxx_dr_status.html | ||
---|---|---|
6476 | I think this might be related as well: https://github.com/llvm/llvm-project/issues/59910 |
clang/www/cxx_dr_status.html | ||
---|---|---|
6476 |
I haven't even tried, since I don't intend to fix this for now.
Is false-positive warning enough to degrade full to partial despite the correct behavior? Just confirming here. |
I didn't internalize that it was 'just a warning' (it was a -error in the test above), we should have a task for someone to remove that warning as it is no longer ambiguous. But I don't think it makes it 'partial' here anymore.
clang/test/CXX/drs/dr11xx.cpp | ||
---|---|---|
1 | I see what happened now: Add -Wno-error=ambiguous-member-template to this line. |
It is an error, because -pedantic-errors is enabled across DR test suite. I wonder why, given that even notes can't escape -verify mode unhandled.
clang/test/CXX/drs/dr11xx.cpp | ||
---|---|---|
31 | Nice catch, thank you. Long exposure to P1787 makes one pay less attention to resolutions in CWG issues, it seems :) |
Change status from "6" to "yes" since "ambiguous-member-template" warning is a false-positive now.
- Disable "ambiguous-member-template" diagnostic in 98 and 03 modes
- Add an example (struct A)
- Apply clang-format
Move CWG2385 ("na") from D142316 into this patch. It makes more sense to put it here, because it fixes inconsistent wording introduced by CWG1111 resolution.
I see what happened now: Add -Wno-error=ambiguous-member-template to this line.