The Well-Tempered Clavier
A striking instance of an attacco used as the subject of a fugue is J. S. Bach's "The Well-Tempered Clavier", No. 27.