https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98323
Bug ID: 98323
Summary: current trunk won't build with clang
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Current trunk has hash 5098d35fb1997aa6.
I tried building it with clang version 11.0.0
and got this:
../../trunk.git/gcc/cp/module.cc:4156:43: error: expected ')'
size_t alloc = (offsetof (impl, impl::stack)
^
../../trunk.git/gcc/cp/module.cc:4156:23: note: to match this '('
size_t alloc = (offsetof (impl, impl::stack)
^
/usr/lib64/clang/11.0.0/include/stddef.h:104:42: note: expanded from macro
'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
For the record, it builds happily with recent gcc.