public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109663] New: False positive? Converting from initializer list would use explicit constructor
@ 2023-04-28  9:56 carlosgalvezp at gmail dot com
  2023-04-28  9:57 ` [Bug c++/109663] " carlosgalvezp at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: carlosgalvezp at gmail dot com @ 2023-04-28  9:56 UTC (permalink / raw)
  To: gcc-bugs

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?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-04-28 15:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28  9:56 [Bug c++/109663] New: False positive? Converting from initializer list would use explicit constructor carlosgalvezp at gmail dot com
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

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).