Anomalous heat conduction in a one-dimensional ideal gas