This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79407] New: -fcall-saved-rax flag causes an internal segmentation fault


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]