https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88779
Bug ID: 88779 Summary: No fix-it hints for misspelled member initializers Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Consider: class test { test (int col) : colour (col) {} int color; }; Trunk emits: <source>: In constructor 'test::test(int)': <source>:3:20: error: class 'test' does not have any field named 'colour' 3 | test (int col) : colour (col) {} | ^~~~~~ Compiler returned: 1 Ideally we'd also emit a "; did you mean 'color'" and a fix-it hint suggesting replacement of "colour" with "color".