public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "carlosgalvezp at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-109663-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            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=54950&action=edit
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 <Eigen/Dense>

int main()
{
    constexpr std::size_t kColumns{4};
    constexpr std::size_t kRows{4};
    using MyVector = Eigen::Matrix<float, kColumns, 1>;
    using MyMatrix = Eigen::Matrix<float, kColumns, kRows>;

    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?

             reply	other threads:[~2023-04-28  9:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28  9:56 carlosgalvezp at gmail dot com [this message]
2023-04-28  9:57 ` [Bug c++/109663] " carlosgalvezp at gmail dot com
2023-04-28 11:50 ` carlosgalvezp at gmail dot com
2023-04-28 12:26 ` redi at gcc dot gnu.org
2023-04-28 14:04 ` carlosgalvezp at gmail dot com
2023-04-28 14:52 ` redi at gcc dot gnu.org
2023-04-28 14:56 ` redi at gcc dot gnu.org
2023-04-28 14:57 ` pinskia at gcc dot gnu.org
2023-04-28 14:58 ` carlosgalvezp at gmail dot com
2023-04-28 15:02 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109663-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).