Not a compile-time diagnostic but I think falls squarely in this realm: App crashes from compiler added hidden assert