[Bug c++/85979] New: Diagnostic says "__alignof" when the source says "alignof"
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 29 16:40:00 GMT 2018
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); }
^
More information about the Gcc-bugs
mailing list