[Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Fri Jan 23 10:15:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64727

--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
(In reply to Jason Merrill from comment #11)
> This seems to be because darwin_build_constant_cfstring uses CONST_DECL for
> a global variable, and the C++ front end expects CONST_DECL to be used only
> for enumerators.

An error would be better than an ICE.

For the record, there are also several similar ICEs in the obj-c++ tests:

FAIL: obj-c++.dg/strings/const-str-5.mm -fnext-runtime (internal compiler
error)
FAIL: obj-c++.dg/strings/strings-1.mm -fnext-runtime (internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O0  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-3.mm   -O0  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-4.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-10.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-11.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-8.mm   -O*  -fnext-runtime (internal
compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-9.mm   -O*  -fnext-runtime (internal
compiler error)



More information about the Gcc-bugs mailing list