https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85979

            Bug ID: 85979
           Summary: Diagnostic says "__alignof" when the source says
                    "alignof"
           Product: gcc
           Version: 8.1.1
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

int f() { return alignof(f); }

m.cc: In function 'int f()':
m.cc:1:27: error: ISO C++ forbids applying '__alignof' to an expression of
function type [-fpermissive]
 int f() { return alignof(f); }
                           ^

Reply via email to