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

            Bug ID: 96687
           Summary: new char[4]{"foo"} doesn't work
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

We should accept the following:

char *p = new char[4]{"foo"};

but we reject with:
error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]

Reply via email to