From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14E17385843E; Fri, 28 Apr 2023 09:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14E17385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682675774; bh=11L5Wt2S1tbvZeKpm7sysD6jVURFoxg1OyKVxITRUa0=; h=From:To:Subject:Date:From; b=fIGt7uG2GUL+q/lYeCU/8NQW4U+QFe2kTqyQpXJqq+lRIBvQNMKzqcbZ1tYlmzwsp PIpE+B2ESPg5Qje6dnNfLEhWn4tfAY/DQG/Mv2TaplHoNzAzeRiSlYfZOawr+1w92h SZJXtlqW0HIhTtyHp7xJX7cg6DUKOSY6IP/PVh38= From: "carlosgalvezp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109663] New: False positive? Converting from initializer list would use explicit constructor Date: Fri, 28 Apr 2023 09:56:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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 Bug ID: 109663 Summary: False positive? Converting from initializer list would use explicit constructor Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: carlosgalvezp at gmail dot com Target Milestone: --- Created attachment 54950 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54950&action=3Dedit Preprocessed source Hi! We are bumping our GCC installation from 6910cad55ffc330dc9767d2c8e0b66ccfa4134af to cc035c5d8672f87dc8c2756d9f8367903aa72d93 (GCC 13.1 release), and are now getting a handful of errors in this type of code compiling in C++14 mode: #include int main() { constexpr std::size_t kColumns{4}; constexpr std::size_t kRows{4}; using MyVector =3D Eigen::Matrix; using MyMatrix =3D Eigen::Matrix; MyMatrix matrix{MyMatrix::Zero()}; MyVector const& my_col{matrix.col(0)}; } Godbolt: https://godbolt.org/z/rx6EY4qbY Preprocessed source attached. I am wondering if this is a False Positive or a real error that should be fixed?=