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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=90475
   Last reconfirmed|                            |2022-10-30
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, related to PR 90475.

Note clang in this case is just as bad as GCC (unlike PR 90475):
<source>:9:7: error: no matching constructor for initialization of 'S'
    S s({
      ^ ~
<source>:1:8: note: candidate constructor (the implicit copy constructor) not
viable: cannot convert initializer list argument to 'const S'
struct S {
       ^
<source>:1:8: note: candidate constructor (the implicit move constructor) not
viable: cannot convert initializer list argument to 'S'
struct S {
       ^
<source>:5:5: note: candidate constructor not viable: cannot convert
initializer list argument to 'const Config'
    S(Config const & cfg);
    ^

Reply via email to