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

Dennis Lubert <plasmahh at gmx dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |plasmahh at gmx dot net

--- Comment #3 from Dennis Lubert <plasmahh at gmx dot net> ---
I was just about to report the same bug (internal compiler error: in
tsubst_copy, at cp/pt.c:15478) but with different code, maybe this can shed
more light on why it is happening, if not, just ignore it:

#include <vector>
#include <cstdint>
#include <cstddef>

int main(int argc, const char *argv[])
{
        const size_t nf = 10'000'000;

        auto loop = [&]( auto& vector )
        {
                long double cy = 0;
                auto per = cy/nf;
        };

        std::vector<int> pv;
        loop( pv );
}

Reply via email to