From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C0663858D37; Fri, 28 Apr 2023 09:57:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C0663858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682675877; bh=gP3wcz3e/H66uvvLEk1J2BTENr89B9O9pbay9mTJvFg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cD5CcI86GbYJtywq1wtmX31RxeabZE3+QBzjxSLpDxQIGX7s2TcxI6Et+lcCHvFCR fIHTjqerJ5ot60wGsGnEk9eqiDdTkyi/I+kZRJpcE5+Ui+41JOMFwlnC9qnRCLNBhK uXTs1dATbaixjfblL70k2YkgvNmqc/cyF40muGdI= From: "carlosgalvezp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109663] False positive? Converting from initializer list would use explicit constructor Date: Fri, 28 Apr 2023 09:57:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlosgalvezp at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109663 --- Comment #1 from Carlos Galvez --- I forgot to write the actual error I'm getting: : In function 'int main()': :11:41: error: converting to 'const MyVector' {aka 'const Eigen::Matrix'} from initializer list would use explicit constructor 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T&) [with T =3D Eigen::Block, 4, 1, true>; _Scalar =3D float; int _Rows =3D 4; int _Cols =3D 1; int _Opti= ons =3D 0; int _MaxRows =3D 4; int _MaxCols =3D 1]' 11 | MyVector const& my_col{matrix.col(0)}; | ^=