[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2023-08-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 --- Comment #8 from Jason Merrill --- (In reply to Jason Merrill from comment #7) > It does seem wrong that a constexpr function can't define a constexpr static > local variable. Incidentally, this was fixed for C++23 by P2647, implemented in

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-06-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 --- Comment #7 from Jason Merrill --- (In reply to Kimon.Hoffmann from comment #6) > The situation as it stands is unfortunate though, since the standard does > not allow "static constexpr" variables in constexpr functions. Therefor I > don't

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-06-02 Thread Kimon.Hoffmann at lawo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 --- Comment #6 from Kimon.Hoffmann at lawo dot com --- Thanks for investigating this report and clarifying the underlying issue! I was afraid that this was a case of UB, but was misled by the cited standard section that mentioned lifetime

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-06-01 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 Bug 85873 depends on bug 67445, which changed state. Bug 67445 Summary: New warning: returning std::initializer_list bound to temporary https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67445 What|Removed |Added

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-06-01 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-06-01 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 --- Comment #4 from Jason Merrill --- Author: jason Date: Fri Jun 1 22:48:58 2018 New Revision: 261091 URL: https://gcc.gnu.org/viewcvs?rev=261091=gcc=rev Log: PR c++/85873 - constant initializer_list array not in .rodata. *

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-05-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 --- Comment #3 from Jason Merrill --- Author: jason Date: Wed May 30 17:33:06 2018 New Revision: 260969 URL: https://gcc.gnu.org/viewcvs?rev=260969=gcc=rev Log: PR c++/85873 - constant initializer_list array not in .rodata. *

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-05-25 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 Jason Merrill changed: What|Removed |Added Keywords|wrong-code |missed-optimization Depends on|

[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.

2018-05-23 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC|