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

            Bug ID: 99507
           Summary: Can't return static address from immediate function
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/vnPToT
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/vnPToT.
```C++
constexpr int i{0};
consteval const int& iref() { return i; }
[[maybe_unused]] constexpr const int* a{&iref()};
```

Reply via email to