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++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11


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)


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