Skip to content

"Assertion `E->getDataElementCount() == 1' failed." with #embed and array new #128985

Open
@efriedma-quic

Description

@efriedma-quic

Testcase:

void f(int x) {
  int *p = new int[x]{
#embed __FILE__ limit(4)
  };
}

CC @Fznamznon

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++clang:codegenIR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]embed#embed (not embedded systems)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions