[Bug c++/78928] New: void(*); accepted in block scope
rs2740 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 26 05:56:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78928
Bug ID: 78928
Summary: void(*); accepted in block scope
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rs2740 at gmail dot com
Target Milestone: ---
From http://stackoverflow.com/q/41326047/2756719.
GCC accepts this plainly invalid code:
void f() {
void(*);
}
It appears that any combination of ptr-operators within the parentheses is
accepted as well.
More information about the Gcc-bugs
mailing list