This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79407] New: -fcall-saved-rax flag causes an internal segmentation fault
- From: "mini at cs dot technion.ac.il" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Feb 2017 14:29:14 +0000
- Subject: [Bug c++/79407] New: -fcall-saved-rax flag causes an internal segmentation fault
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79407
Bug ID: 79407
Summary: -fcall-saved-rax flag causes an internal segmentation
fault
Product: gcc
Version: 5.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mini at cs dot technion.ac.il
Target Milestone: ---
I am getting internal error with the -fcall-saved-rax flag
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
to reproduce:
$ cat main.c
int main() {
int* x = new int;
return 0;
}
$ g++ -fcall-saved-rax main.c
main.c: In function ‘int main()’:
main.c:16:15: internal compiler error: Segmentation fault
int* x = new int;
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.