public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/100246] New: [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]
@ 2021-04-24 15:52 iains at gcc dot gnu.org
  2021-04-24 15:54 ` [Bug bootstrap/100246] " iains at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: iains at gcc dot gnu.org @ 2021-04-24 15:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100246
           Summary: [11/12 Regression] GCC will not bootstrap with clang
                    3.4/3.5 [xcode 5/6, Darwin 12/13]
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iains at gcc dot gnu.org
  Target Milestone: ---

using CC=clang and CXX="clang++ -stdlib=libc++" which is needed to get C++11
support.

In file included from /src-local/gcc-git-11/gcc/config/i386/i386-options.c:94:
/src-local/gcc-git-11/gcc/config/i386/x86-tune-costs.h:363:13: error: call to
implicitly-deleted default constructor of 'const struct stringop_strategy'
  {libcall, {{-1, rep_prefix_4_byte, false}}},
            ^
/src-local/gcc-git-11/gcc/config/i386/i386.h:254:15: note: default constructor
of 'stringop_strategy' is implicitly deleted because field 'max' of
const-qualified type 'const int' would not be initialized
    const int max;

====

when building in c++89 mode, (GCC10.x and earlier) this worked fine.  It does
look like a clang bug (but the rules are quite complex around this topic).  It
would seem it's trying to find a constructor for the empty elements in the
lists (and that is implicitly deleted).

====

A workaround is to ensure that all the elements have a complete initialisers
with dummy entries for those that are not needed.  Patch pending.

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

end of thread, other threads:[~2021-11-29  8:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 15:52 [Bug bootstrap/100246] New: [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13] iains at gcc dot gnu.org
2021-04-24 15:54 ` [Bug bootstrap/100246] " iains at gcc dot gnu.org
2021-04-24 20:21 ` iains at gcc dot gnu.org
2021-04-26  7:23 ` rguenth at gcc dot gnu.org
2021-04-27 19:34 ` gcc@Denis-Excoffier.org
2021-05-05  7:43 ` iains at gcc dot gnu.org
2021-05-07 19:44 ` iains at gcc dot gnu.org
2021-05-09  9:01 ` gcc@Denis-Excoffier.org
2021-05-10  8:40 ` iains at gcc dot gnu.org
2021-05-13 18:53 ` pinskia at gcc dot gnu.org
2021-07-06 10:14 ` cvs-commit at gcc dot gnu.org
2021-07-20  6:58 ` cvs-commit at gcc dot gnu.org
2021-07-20  6:59 ` iains at gcc dot gnu.org
2021-11-05 15:59 ` cvs-commit at gcc dot gnu.org
2021-11-29  8:49 ` cvs-commit at gcc dot gnu.org

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).