News for hackers. Stuff that matters.
Re:C++26: Trivial infinite loops are no longer undefined beh... by rcxdude on Friday September 18, 2026 @12:17PM (#49756581)
If it's truly unreachable then it's not likely to be a problem. If it is reachable and it's emerging from some macros and templates then I would be more inclined want a warning for it.
Re:C++26: Trivial infinite loops are no longer undefined beh... by IsTom on Friday September 18, 2026 @12:24PM (#49756662)
Yeah, but then you need compiler to somehow know if it's truly unreachable to know when to emit the warning and when to not do that.
Re:C++26: Trivial infinite loops are no longer undefined beh... by krupan on Friday September 18, 2026 @01:16PM (#49757362)
If it's a warning and not an error then emit it whether it's unreachable or not