QuickLinks -- Click here to rapidly navigate through this documentExhibit 5.4
CONSENT OF DORSEY & WHITNEY LLP
We consent to the reference to our opinion contained under "United States Federal Income Tax Considerations" in the Registration Statement on Form F-10 of Yamana Gold Inc. In giving this consent we do not acknowledge that we come within the category of persons whose consent is required by the U.S. Securities Act of 1933 or the rules and regulations thereunder.
/s/DORSEY & WHITNEY LLP
Toronto, Canada
June 17, 2005
QuickLinks
CONSENT OF DORSEY & WHITNEY LLP