Closed Cazayus closed 1 month ago
Thanks for the report - this is a duplicate of #4666. While the error is different (::operator new
instead of std::align_val_t
), the root cause is the same - <crtdbg.h>
drags in VCRuntime, and VCRuntime has to export a bit of Standard Library machinery, so this is the import-before-include scenario that's blocked by our implementation bug/limitation.
I appreciate the report even though it turned out to be a duplicate (sometimes similar-looking bugs are actually distinct).
Describe the bug
It is possible to work around the issue #4666 with a #define, but the following code still fails to compile with another error. Seemed worth reporting separately just in case.
Command-line test case
Expected behavior
It should compile but does not
STL version