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

--- Comment #3 from Andrey Vihrov <andrey.vihrov at gmail dot com> ---
Another sample, probably caused by the same underlying issue:

    struct T
    {
        char a[3];
    };

    void bar()
    {
        T t{"x"};   // OK
        T{"x"};     // OK
        new T{"x"}; // error: could not convert '{"x"}' from
                    // '<brace-enclosed initializer list>' to 'T'
    }

Reply via email to