-
Notifications
You must be signed in to change notification settings - Fork 163
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
libs\gil\test\core\histogram\fill.cpp(64): fatal error C1001: Internal compiler error #645
Comments
I notice that only debug builds fail, aka |
This bug report Regression default-initializing static duration array of vectors in C++latest debug mode is a close match. Which make me wonder why use |
FYI, I reported the issue here, https://developercommunity.visualstudio.com/t/INTERNAL-COMPILER-ERROR-compiling-std::v/10011526
Yes, |
This should work around the Internal Compiler Error due to std::vector<std::vector<bool>>, see #645
Latest update: "A fix for this issue has been internally implemented and is being prepared for release. " |
According to https://developercommunity.visualstudio.com/t/INTERNAL-COMPILER-ERROR-compiling-std::v/10011526#T-N10277969 this should be fixed by now:
Unfortunately, it does not say which versions of MSVC contain the fix. So somebody might still need to confirm that this is fixed for the versions used in the CI jobs. Edit: Oh wait ... it says "Fixed In: Visual Studio 2022 version 17.3", so it should at least work for the |
Actual behavior
Currently, this internal error is occurring for two CI jobs (recently improved by @striezel)
Here is sample log:
Assuming
libs\gil\test\core\histogram\fill.cpp(64)
means line 64, bug must be coming from the vectors ofbool
here:gil/test/core/histogram/fill.cpp
Lines 58 to 64 in 3e729e5
@codejaeger since it's your code, before I jump in modifying it myself, would you have any suggestions/preferences?
Some ideas:
std::vector<std::vector<bool>>
with linearstd::vector<bool>
orstd::bitset
mask_2d
andmask_2d_fixed
adapting linearstd::vector<bool>
, likekernel_2d
C++ Minimal Working Example
The text was updated successfully, but these errors were encountered: