‘We’ve seen this before,” warns BofA. Why inflation could take until 2024 to fall to 3% and weigh on stocks.

U.S. stocks roared higher Thursday after October’s consumer-price index showed inflation rising at a less aggressive annual pace than expected, spurring hopes that the Federal Reserve’s inflation flig...