Anomalous magnetism of the frustrated compound GdInCu4