https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64883

            Bug ID: 64883
           Summary: FAIL: 17_intro/headers/c++*/all_attributes.cc (test
                    for excess errors) on x86_64-apple-darwin14
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: fxcoudert at gcc dot gnu.org, howarth at bromo dot 
med.uc.edu,
                    iains at gcc dot gnu.org, redi at gcc dot gnu.org
              Host: x86_64-apple-darwin14
            Target: x86_64-apple-darwin14
             Build: x86_64-apple-darwin14

The tests 17_intro/headers/c++*/all_attributes.cc fail on x86_64-apple-darwin14

g++ -ffunction-sections -fdata-sections -DLOCALEDIR="." -nostdinc++
-I/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0
-I/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include
-I/opt/gcc/work/libstdc++-v3/libsupc++
-I/opt/gcc/work/libstdc++-v3/testsuite/util
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc
-std=gnu++98 -S -m32
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
In file included from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/cstdio:42:0,
                 from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0/bits/stdc++.h:46,
                 from
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:32:
/usr/include/stdio.h:276:20: error: declaration does not declare anything
[-fpermissive]
 char *tmpnam(char *);
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
In file included from /usr/include/assert.h:42:0,
                 from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/cassert:43,
                 from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0/bits/stdc++.h:33,
                 from
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:32:
/usr/include/stdio.h:391:43: error: declaration does not declare anything
[-fpermissive]
 char *tempnam(const char *, const char *) __DARWIN_ALIAS(tempnam);
                                           ^
In file included from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0/bits/stdc++.h:46:0,
                 from
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:32:
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/cstdio:141:11:
error: '::tmpnam' has not been declared
   using ::tmpnam;
           ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
In file included from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/ext/stdio_sync_filebuf.h:35:0,
                 from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0/bits/extc++.h:55,
                 from
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:33:
/usr/include/unistd.h:533:23: error: declaration does not declare anything
[-fpermissive]
 void *brk(const void *);
                       ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
 #define deprecated 1
                    ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:25:20:
error: expected ')' before numeric constant
In file included from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/ext/stdio_sync_filebuf.h:35:0,
                 from
/opt/gcc/build_w/x86_64-apple-darwin14.1.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.1.0/bits/extc++.h:55,
                 from
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:33:
/usr/include/unistd.h:582:15: error: declaration does not declare anything
[-fpermissive]
 void *sbrk(int);
               ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant
 #define noreturn 1
                  ^
/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc:26:18:
error: expected ')' before numeric constant

The tests have been introduced at r220243.

Reply via email to