[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2022-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Andrew Pinski  changed:

   What|Removed |Added

   See Also||https://github.com/llvm/llv
   ||m-project/issues/28016

--- Comment #8 from Andrew Pinski  ---
Note clang accepting this code is recorded as
https://github.com/llvm/llvm-project/issues/28016 .

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2022-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Andrew Pinski  changed:

   What|Removed |Added

 CC||konstantin.vladimirov@gmail
   ||.com

--- Comment #7 from Andrew Pinski  ---
*** Bug 97220 has been marked as a duplicate of this bug. ***

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2022-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Andrew Pinski  changed:

   What|Removed |Added

 CC||ldionne.2 at gmail dot com

--- Comment #6 from Andrew Pinski  ---
*** Bug 102247 has been marked as a duplicate of this bug. ***

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2022-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Andrew Pinski  changed:

   What|Removed |Added

 CC||nruslan_devel at yahoo dot com

--- Comment #5 from Andrew Pinski  ---
*** Bug 107958 has been marked as a duplicate of this bug. ***

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2018-01-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Jonathan Wakely  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Jonathan Wakely  ---
That's unfortunate, I much prefer the Clang and EDG behaviour, which is to
resolve the ambiguity in favour of the converting constructor.

In the Clang bug Ed links to https://wg21.link/cwg1228

So this is INVALID.

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2018-01-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Jonathan Wakely  changed:

   What|Removed |Added

 CC||hpmv at google dot com

--- Comment #2 from Jonathan Wakely  ---
*** Bug 77386 has been marked as a duplicate of this bug. ***

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2018-01-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Jonathan Wakely  changed:

   What|Removed |Added

 CC||g...@axel-naumann.de

--- Comment #3 from Jonathan Wakely  ---
*** Bug 71468 has been marked as a duplicate of this bug. ***

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2016-05-04 Thread ed at catmur dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Ed Catmur  changed:

   What|Removed |Added

 CC||ed at catmur dot co.uk

--- Comment #1 from Ed Catmur  ---
This is correct.

[over.match.list]:

[...] In copy-list-initialization, if an explicit constructor is chosen, the
initialization is ill-formed. [ Note: This differs from other situations
([over.match.ctor], [over.match.copy]), where only converting constructors are
considered for copy-initialization. This restriction only applies if this
initialization is part of the final result of overload resolution. — end note ]

See also: https://llvm.org/bugs/show_bug.cgi?id=27642
http://stackoverflow.com/questions/34622076/calling-an-explicit-constructor-with-a-braced-init-list-ambiguous-or-not?rq=1

[Bug c++/60027] Problem with braced-init-lists and explicit ctors

2014-02-04 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60027

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||rejects-valid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-02-04
 Ever confirmed|0   |1