public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/98323] New: current trunk won't build with clang
@ 2020-12-16 17:27 dcb314 at hotmail dot com
  2020-12-16 17:28 ` [Bug bootstrap/98323] " dcb314 at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-12-16 17:27 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-04 22:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 17:27 [Bug bootstrap/98323] New: current trunk won't build with clang dcb314 at hotmail dot com
2020-12-16 17:28 ` [Bug bootstrap/98323] " dcb314 at hotmail dot com
2020-12-16 17:35 ` nathan at gcc dot gnu.org
2020-12-16 17:45 ` dcb314 at hotmail dot com
2020-12-16 17:47 ` nathan at gcc dot gnu.org
2020-12-16 20:22 ` nathan at acm dot org
2020-12-16 23:52 ` egallager at gcc dot gnu.org
2020-12-17  0:23 ` jakub at gcc dot gnu.org
2020-12-17  0:30 ` jakub at gcc dot gnu.org
2021-01-04 22:23 ` joseph at codesourcery dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).