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

            Bug ID: 127828
           Summary: CWG 3089, C++26: changing the definition of
                    const-default-constructible
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: programmer00001h at gmail dot com
  Target Milestone: ---

The following two declarations are currently rejected by GCC but should be
accepted per the resolution of CWG issue 3089
(https://cplusplus.github.io/CWG/issues/3089.html,"const-default-constructible
improperly handles std::meta::info"), which was accepted into C++26:
```
const decltype(nullptr) should_be_null;
```
, and
```
struct T{
    decltype(^^::) field;
} const x;
```
.

Reply via email to