public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111656] New: Recent build failure with clang
@ 2023-10-01 20:02 dcb314 at hotmail dot com
  2023-10-01 20:07 ` [Bug c/111656] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dcb314 at hotmail dot com @ 2023-10-01 20:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111656
           Summary: Recent build failure with clang
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I normally build trunk gcc with clang. However, today it didn't work.
clang said:

../../trunk.year/gcc/poly-int.h:453:14: error: excess elements in array
initializer

Source code is

template<unsigned int N, typename C>
template<typename ...Cs>
inline constexpr
poly_int<N, C>::poly_int (poly_int_full, const Cs &... cs)
  : coeffs { (typename poly_coeff_traits<C>::
          template init_cast<Cs>::type (cs))... } {}

It build fine with gcc, so I have a temporary workaround.

git blame says:

eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  449)
template<unsigned int N, typename C>
eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  450)
template<typename ...Cs>
eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  451) inline constexpr
eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  452) poly_int<N,
C>::poly_int (poly_int_full, const Cs &... cs)
eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  453)   : coeffs {
(typename poly_coeff_traits<C>::
eaa41a6dc12 (Richard Sandiford 2023-09-29 17:55:12 +0100  454)        template
init_cast<Cs>::type (cs))... } {}

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

* [Bug c/111656] Recent build failure with clang
  2023-10-01 20:02 [Bug c/111656] New: Recent build failure with clang dcb314 at hotmail dot com
@ 2023-10-01 20:07 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-01 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 111642.

*** This bug has been marked as a duplicate of bug 111642 ***

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

end of thread, other threads:[~2023-10-01 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-01 20:02 [Bug c/111656] New: Recent build failure with clang dcb314 at hotmail dot com
2023-10-01 20:07 ` [Bug c/111656] " pinskia 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).