A construction machine comprising: an undercarriage; a superstructure comprising an internal combustion engine; a swivel configured to rotatably mount the superstructure onto the undercarriage; and a first fuel tank (60; 360) disposed at the undercarriage, the first fuel tank (60; 360) comprising: a first fuel compartment (62; 362) defining a first convex volume including a most lower point, a second fuel compartment (64; 364) defining a second convex volume including a most lower point, and characterized in that the first fuel compartment (62; 362) is configured to provide fuel to the internal combustion engine and that the second fuel compartment (64; 364) is configured to receive excessive fuel from the internal combustion engine and is disposed beside the first fuel compartment (62; 362), such that the most lower point of the second convex volume is at higher altitudes than the most lower point of the first convex volume; and in that the machine further comprises an inclined fuel passage (66; 366) configured to fluidly connect the most lower point of the second convex volume to the first convex volume, such that fuel within the second fuel compartment (64; 364) is enabled to drain the second fuel compartment (64; 364) into the first fuel compartment (62; 362). an undercarriage; a superstructure comprising an internal combustion engine; a swivel configured to rotatably mount the superstructure onto the undercarriage; and a first fuel tank (60; 360) disposed at the undercarriage, the first fuel tank (60; 360) comprising: a first fuel compartment (62; 362) defining a first convex volume including a most lower point, a second fuel compartment (64; 364) defining a second convex volume including a most lower point, and characterized in that the first fuel compartment (62; 362) is configured to provide fuel to the internal combustion engine and that the second fuel compartment (64; 364) is configured to receive excessive fuel from the internal combustion engine and is disposed beside the first fuel compartment (62; 362), such that the most lower point of the second convex volume is at higher altitudes than the most lower point of the first convex volume; and in that the machine further comprises an inclined fuel passage (66; 366) configured to fluidly connect the most lower point of the second convex volume to the first convex volume, such that fuel within the second fuel compartment (64; 364) is enabled to drain the second fuel compartment (64; 364) into the first fuel compartment (62; 362). a first fuel compartment (62; 362) defining a first convex volume including a most lower point, a second fuel compartment (64; 364) defining a second convex volume including a most lower point, and characterized in that the first fuel compartment (62; 362) is configured to provide fuel to the internal combustion engine and that the second fuel compartment (64; 364) is configured to receive excessive fuel from the internal combustion engine and is disposed beside the first fuel compartment (62; 362), such that the most lower point of the second convex volume is at higher altitudes than the most lower point of the first convex volume; and in that the machine further comprises an inclined fuel passage (66; 366) configured to fluidly connect the most lower point of the second convex volume to the first convex volume, such that fuel within the second fuel compartment (64; 364) is enabled to drain the second fuel compartment (64; 364) into the first fuel compartment (62; 362).