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)