https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110568
Bug ID: 110568 Summary: ftrivial-auto-var-init= has no effect on return values in C Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- When I am trying to reduce a bug, I had thought -ftrivial-auto-var-init=pattern would help me not get an uninitialized variable but nope. So a simple testcase like: ``` int f(void) { } ``` For C (since in C++ it is undefined right away), I would have thought -ftrivial-auto-var-init=pattern would help here but does not.