A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cplusplus/papers/issues/1380 below:

CWG2536 Zero-initialization in addition to constant initialization and stability of padding bits · Issue #1380 · cplusplus/papers · GitHub

See CWG2558 and CWG2536

CWG2558: Is it intentional that uninitialized subobjects can appear in prvalues returned by constant expressions?
P1331R2 dropped the corresponding restriction, but maybe that wasn't entirely intentional.

  struct A {
    int n;
    consteval A() {}
  };
  constexpr A a;

CWG2536: The variable a is a variable with static storage duration, which previously could not have subobjects with indeterminate value (because of zero-initialization). The status quo wording does permit such indeterminate values. Is that intentional?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4