CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the reference to our firm under the captions "Financial Highlights" in the Prospectus and "Counsel and Independent Registered Public Accounting Firm" in the Statement of Additional Information and to the incorporation by reference in Post-Effective Amendment No. 49 to the Registration Statement (Form N-1A Nos. 33-27172 and 811-05719) of our report dated February 9, 2021 on the financial statement and financial highlights of BNY Mellon Stock Index Fund, Inc. (the “Fund”) included in the Fund’s annual report for the fiscal year ended December 31, 2020.
/s/ ERNST & YOUNG LLP
New York, New York
April 9, 2021