https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107958
--- Comment #10 from Ruslan Nikolaev ---
The latter example seems to work well for both gcc and clang. The behavior is
also consistent for both explicit and implicit constructors.
Thank you for clarifying that it was not a bug!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107958
--- Comment #9 from Ruslan Nikolaev ---
Interestingly, if I change the code a little bit and have a pair in the
constructor rather than two arguments, gcc seems to compile the code:
#include
#include
struct PairPtr {
PairPtr() {}
P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107958
Bug ID: 107958
Summary: Ambiguity with uniform initialization in overloaded
operator and explicit constructor
Product: gcc
Version: unknown
Status: UNCONFIRMED