"dinosaurs to fly" vs "flying dinosaurs" [closed]
the earliest dinosaurs to fly
This is a noun phrase in which "to fly" is an infinitival relative clause modifying "dinosaurs".
Infinitival relatives characteristically have a modal meaning comparable to that expressed in finite relative clauses by "can" and "should". Your example is comparable to "the earliest dinosaurs who could fly".