[Bug c++/70769] function definition wrongfully allowed inside comma separated member declaration list

2019-07-05 Thread fourmisain+gcc at gmail dot com
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

2016-04-23 Thread fourmisain+gcc at gmail dot com
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