https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68357
Bug ID: 68357 Summary: [6 Regression] FAIL: g++.dg/other/darwin-cfstring1.C -std=* (internal compiler error) on x86_64-apple-darwin1(0|4) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: fxcoudert at gcc dot gnu.org, howarth.at.gcc.testresults at gmail dot com, iains at gcc dot gnu.org Target Milestone: --- Host: x86_64-apple-darwin1* Target: x86_64-apple-darwin1* Build: x86_64-apple-darwin1* At revision r230384, compiling the test g++.dg/other/darwin-cfstring1.C gives the ICE [Book15] f90/bug% g++6 /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C -std=gnu++98 -ftrack-macro-expansion=0 -mconstant-cfstrings /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C: In function 'int main()': /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C:21:20: error: CFString literal expression is not a string constant CFStringRef s2 = CFSTR(cond? "Str2": "Str3"); /* { dg-error "CFString literal expression is not a string constant" } */ ^~~~~ /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C:22:20: error: CFString literal expression is not a string constant CFStringRef s3 = CFSTR(func()); /* { dg-error "CFString literal expression is not a string constant" } */ ^~~~~ /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C:21:20: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:83 CFStringRef s2 = CFSTR(cond? "Str2": "Str3"); /* { dg-error "CFString literal expression is not a string constant" } */ ^~~~~ /opt/gcc/_clean/gcc/testsuite/g++.dg/other/darwin-cfstring1.C:21:20: internal compiler error: Abort trap: 6 Revision r230359 is OK.