A heat exchanger with a receiver-tank includes a heat exchanger main body, a
receiver-tank
and a block flange. The flange includes a main body, an embedding portion to be
attached to one of headers in an embedded state, an inlet flow passage with an
inlet side end portion disposed at an upper end of the embedding portion, the inlet
flow passage communicating with a condensing portion of the heat exchanger main
body, and an outlet flow passage with an outlet side end portion disposed at a
side surface of the embedding portion, and the outlet flow passage communicating
with a subcooling portion. A flange-like partition piece is formed at an upper
end periphery of the embedding portion of the flange, and the peripheral edge of
the partition piece is joined to the inner peripheral surface of one of the headers.