[Bug target/96562] Rather poor assembly generated for copy-list-initialization in return statement.

maxim.yegorushkin at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 10 22:19:25 GMT 2020


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

--- Comment #1 from Maxim Egorushkin <maxim.yegorushkin at gmail dot com> ---
Correction:

    Span<unsigned char*, unsigned> f(unsigned char* p, unsigned char* q) {
        return {p, static_cast<unsigned>(q - p)};
    }


More information about the Gcc-bugs mailing list