The following programm cannot be compiled using dmd 2.091.0 on Linux:
---
import core.stdcpp.vector;
void main()
{
vector!int cppVector;
}
---
Attempting to compile it results in
> rdmd vectortest.d
/usr/include/dlang/dmd/core/stdcpp/vector.d(57): Error: undefined identifier size, did you mean alias size_t?
vectortest.d(5): Error: template instance core.stdcpp.vector.vector!(int, allocator!int) error instantiating
Failed: ["/usr/bin/dmd", "-v", "-o-", "vectortest.d", "-I."]
The static assert in line 740 of vector.d is likely intended to fail to give an informative error message:
---
else
{
static assert(false, "C++ runtime not supported");
}
---
However, the compiler fails earlier than that, resulting in the cryptic message quoted above.
Comment #1 by robert.schadek — 2024-12-07T13:40:10Z