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.

Reply via email to