https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111446
Bug ID: 111446
Summary: genmatch should warn/error out on recusive match
patterns
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: normal
Priority: P3
Component: middle-end
Assignee: pinskia at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
After PR 111442 and PR 111435, I figure we should warn (or error out) about the
case where a match recusively uses itself as that will cause issues with VN and
almost always generate an infinite loop.