Skip to content

Clang C compat: Empty aggregate initializers #238

Description

@daveedvdv-nvidia

(Created in support of PR #235)

We noticed a regression where empty initializers for aggregates are no longer accepted when emulating clang versions before clang 17. For example, the following fails with EDG 7.0:

  struct A {
    int i;
  };

  struct A a = {};

This seems to be due to the changes made as part of EDGcpfe/29042.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions