https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70179
Bug ID: 70179 Summary: PPC64 ICE with -mabi=ieeelongdouble and long double complex Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: koorogi+bugs at koorogi dot info Target Milestone: --- GCC has an internal compiler error with trivial code using long double complex values on powerpc64 using -mlong-double-128 and -mabi=ieeelongdouble. ~> cat ldcomplex.c long double _Complex foo(); long double _Complex bar() { return foo(); } ~> ppc-gcc -mlong-double-128 -mabi=ieeelongdouble -c ldcomplex.c -o ldcomplex.o ppc-gcc: warning: using IEEE extended precision long double cc1: warning: using IEEE extended precision long double ldcomplex.c: In function 'bar': ldcomplex.c:2:37: internal compiler error: in read_complex_part, at expr.c:3072 long double _Complex bar() { return foo(); } ^~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This was with the gcc 6 snapshot from 20160228. Earlier versons of the compiler that I've tested (5.2.0 and 4.9.2) have a segmentation fault on the same test case.