public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96887] New: Excessive error output with member initializer list and array
@ 2020-09-01 21:48 mpolacek at gcc dot gnu.org
  2023-01-19  7:02 ` [Bug c++/96887] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-01 21:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96887
           Summary: Excessive error output with member initializer list
                    and array
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

struct A {
  A(char);
};

class B {
  const A ary[64];
  B (const A a[]) : ary{a} { }
};

generates 1 + 64 error messages:

array3.C:7:21: error: could not convert ‘<brace-enclosed initializer list>()’
from ‘<brace-enclosed initializer list>’ to ‘const A’
[...]

each for every element of ary.  We should only say that there's no viable
conversion from 'const A *' to 'const A'

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

* [Bug c++/96887] Excessive error output with member initializer list and array
  2020-09-01 21:48 [Bug c++/96887] New: Excessive error output with member initializer list and array mpolacek at gcc dot gnu.org
@ 2023-01-19  7:02 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-19  7:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
      Known to work|                            |12.1.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks to be fixed in GCC 12.

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

end of thread, other threads:[~2023-01-19  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 21:48 [Bug c++/96887] New: Excessive error output with member initializer list and array mpolacek at gcc dot gnu.org
2023-01-19  7:02 ` [Bug c++/96887] " 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).