-
Notifications
You must be signed in to change notification settings - Fork 255
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
[Bug]: Incomplete type error with vector of unique_ptrs #1798
Comments
It seems that godbolt's Clang 14 is built from commit llvm/llvm-project@282c83c which is somewhere between 14.0.0 and 14.0.1. While NDK r25b is on llvm/llvm-project@282c83c which is 14.0.0. Any plans to update to latest LLVM 14 release which already is 14.0.6? |
NDK r25b is using clang-r450784d, which doesn't seem to reproduce this error for me. Can you confirm which Clang/NDK you are actually running? Also, Android's
The following command also works for your test file:
|
Following command fails for me:
If I use plain clang++ without specifying a |
If you omit |
I believe that command will use a newer libc++ than what the NDK is using. I still see the reported problem with NDK r25b:
I assume this is #1530. |
Yes (I have Clang 14.0.5 with libc++ installed on host machine (Fedora 36)). |
Ah, I missed that I was using the wrong libc++ as part of my call. This indeed looks like #1530 again. |
Duplicate of #1530 |
Description
This code fails to compile with
invalid application of 'sizeof' to an incomplete type 'Opaque'
error using NDK r25b:I believe that this code is legal. GCC and MSVC accept it, as well as Clang/libc++ starting with version 14 (which NDK r25b should based on).
It fails with Clang/libc++ 13, though.
Here is godbolt link: https://godbolt.org/z/YvnK5Wrod
If you change Clang version to 14.0.0 then error disappears.
Upstream bug
No response
Commit to cherry-pick
No response
Affected versions
r25
Canary version
No response
Host OS
Linux
Host OS version
Ubuntu 22.04
Affected ABIs
armeabi-v7a, arm64-v8a, x86, x86_64
The text was updated successfully, but these errors were encountered: