This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Jan 2015 10:15:06 +0000
- Subject: [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
- Auto-submitted: auto-generated
- References: <bug-64727-4 at http dot gcc dot gnu dot org/bugzilla/>
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)