-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect error reported for deleted function #134265
Comments
@llvm/issue-subscribers-bug Author: Paul Kirth (ilovepi)
Some time since 0454dd8 clang has started emitting an error for using a deleted function, except that function is not used.
Godbolt: https://godbolt.org/z/aW31816h4 Surprisingly, this doesn't appear to manifest on godbolt w/ the assertions enabled, but in my local build (RelWithDebInfo + assertions) they do. I'm bisecting now, but #133451 and #128866 seem like they could be related. cc: @momo5502 @Fznamznon |
Hm. My first guess would be that it's not related to #128866, because that change only affected members within a constructor. However, I might as well be wrong. |
Bisected to #133950. @Fznamznon can you take a look? This is currently hitting our CI when building Fuchsia https://ci.chromium.org/ui/p/fuchsia/builders/ci/clang_toolchain.ci.core.x64-debug-tot-build_only/b8718579542173931569/overview If this will take a while to triage, would you mind reverting until it can be fixed? |
Hi, I'll take a look. |
For vector deleting dtors support we now also search and save operator delete[]. Avoid diagnosing deleted operator delete[] when doing that because vector deleting dtors are only called when delete[] is present and whenever delete[] is present in the TU it will be diagnosed correctly. Fixes llvm#134265
I created a fix, sorry about inconvenience! |
…#134357) For vector deleting dtors support we now also search and save operator delete[]. Avoid diagnosing deleted operator delete[] when doing that because vector deleting dtors are only called when delete[] is present and whenever delete[] is present in the TU it will be diagnosed correctly. Fixes llvm/llvm-project#134265
Thanks! Can confirm this is now fixed in our CI. |
Some time since 0454dd8 clang has started emitting an error for using a deleted function, except that function is not used.
Godbolt: https://godbolt.org/z/aW31816h4
Surprisingly, this doesn't appear to manifest on godbolt w/ the assertions enabled, but in my local build (RelWithDebInfo + assertions) they do.
I'm bisecting now, but #133451 and #128866 seem like they could be related.
cc: @momo5502 @Fznamznon
The text was updated successfully, but these errors were encountered: