[Bug c++/70769] function definition wrongfully allowed inside comma separated member declaration list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70769 fourmisain+gcc at gmail dot com changed: What|Removed |Added Version|5.2.0 |9.1.0 --- Comment #1
[Bug c++/70769] New: function definition wrongfully allowed inside comma separated member declaration list
Severity: trivial Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fourmisain+gcc at gmail dot com Target Milestone: --- This code should not compile while it does: class C { int n, f(int) { return 42; } }; To break it