The germans tried the curved gun with an attachment called Krummlauf during ww2. It would break after just a couple of magazines being fired. https://en.wikipedia.org/wiki/Krummlauf
Not sure how you would build one of those without the stress of the bullet during firing would not damage the barrel.