public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99507] New: Can't return static address from immediate function
@ 2021-03-10  6:33 johelegp at gmail dot com
  2021-03-10 13:32 ` [Bug c++/99507] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: johelegp at gmail dot com @ 2021-03-10  6:33 UTC (permalink / raw)
  To: gcc-bugs

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()};
```

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-28 22:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  6:33 [Bug c++/99507] New: Can't return static address from immediate function johelegp at gmail dot com
2021-03-10 13:32 ` [Bug c++/99507] " jakub at gcc dot gnu.org
2021-03-12  9:12 ` cvs-commit at gcc dot gnu.org
2021-03-12  9:13 ` jakub at gcc dot gnu.org
2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org
2021-08-28 22:39 ` johelegp at gmail dot com
2021-08-28 22:43 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).