http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60563
Bug ID: 60563 Summary: FAIL: g++.dg/ext/sync-4.C on *-apple-darwin* Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: iains at gcc dot gnu.org, ian at gcc dot gnu.org Host: *-apple-darwin* Target: *-apple-darwin* Build: *-apple-darwin* Running target unix/-m32 FAIL: g++.dg/ext/sync-4.C -std=gnu++98 execution test FAIL: g++.dg/ext/sync-4.C -std=gnu++11 execution test FAIL: g++.dg/ext/sync-4.C -std=gnu++1y execution test Running target unix/-m64 FAIL: g++.dg/ext/sync-4.C -std=gnu++98 (test for excess errors) UNRESOLVED: g++.dg/ext/sync-4.C -std=gnu++98 compilation failed to produce executable FAIL: g++.dg/ext/sync-4.C -std=gnu++11 (test for excess errors) UNRESOLVED: g++.dg/ext/sync-4.C -std=gnu++11 compilation failed to produce executable FAIL: g++.dg/ext/sync-4.C -std=gnu++1y (test for excess errors) UNRESOLVED: g++.dg/ext/sync-4.C -std=gnu++1y compilation failed to produce executable There is no failure at r204199, but I see them at r204372. Since the test has been introduced in r204360, it is likely that it has never worked on darwin. For -m32 the run time failure is terminate called after throwing an instance of 'int' For -m64 the compilation aborts on /opt/gcc/work/gcc/testsuite/g++.dg/ext/sync-4.C:12:47: error: conflicting declaration 'typedef long int int64_t' In file included from /opt/gcc/build_w/gcc/include-fixed/stdint.h:30:0, from /opt/gcc/build_w/gcc/include/stdint.h:9, from /usr/include/sys/resource.h:72, from /usr/include/sys/wait.h:110, from /usr/include/stdlib.h:65, from /opt/gcc/work/gcc/testsuite/g++.dg/ext/sync-4.C:8: /usr/include/sys/_types/_int64_t.h:30:20: note: previous declaration as 'typedef long long int int64_t'