BOSTON — An attorney for married gay couples has argued that the federal Defense of Marriage Act is unconstitutional because it treats same-sex married couples differently than heterosexual couples.

Mary Bonauto, an attorney with Gay & Lesbian Advocates and Defenders, said in federal court in Boston on Thursday that the law denies gay couples an array of federal benefits, including the financial advantages of filing federal income taxes jointly.