A compiler-generated constructor is an automatically provided constructor by the compiler when a class or struct does not explicitly define any constructors. This constructor initializes the object's members to default values, ensuring the object is in a valid state when instantiated.