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 libstdc++/81056] New: [7,8 Regression] FAIL: 17_intro/names.cc (test for excess errors)


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

            Bug ID: 81056
           Summary: [7,8 Regression] FAIL: 17_intro/names.cc (test for
                    excess errors)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
                CC: redi at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa*-*-hpux*
            Target: hppa*-*-hpux*
             Build: hppa*-*-hpux*

Created attachment 41536
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41536&action=edit
Patch

spawn /mnt/gnu/gcc/objdir/./gcc/xg++ -shared-libgcc -B/mnt/gnu/gcc/objdir/./gcc
-nostdin
c++ -L/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src
-L/mnt/gnu/gcc/objdir/h
ppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-L/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs
-B/nowhere/hppa2.0w-hp-hpux11.11/bin/ -B/nowhere/hppa2.0w-h
p-hpux11.11/lib/ -isystem /nowhere/hppa2.0w-hp-hpux11.11/include -isystem
/nowhere/hppa2
.0w-hp-hpux11.11/sys-include
-B/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/./libstdc++-v3/
src/.libs -fmessage-length=0 -fno-show-column -g -O2 -DLOCALEDIR="."
-nostdinc++ -I/mnt/
gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
-I/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/mnt/gnu/gcc/gcc/libstdc++-v3
/libsupc++ -I/mnt/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/mnt/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/mnt/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/names.cc -fno-diagno
stics-show-caret -fdiagnostics-color=never -S -o names.sIn file included from
/usr/include/sys/param.h:34,
                 from /usr/include/limits.h:411,                 from
/mnt/gnu/gcc/objdir/./gcc/include-fixed/limits.h:194,
                 from /mnt/gnu/gcc/objdir/./gcc/include-fixed/syslimits.h:7,   
             from /mnt/gnu/gcc/objdir/./gcc/include-fixed/limits.h:34,
                 from
/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/climits:42,
                 from
/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11/bits/stdc++.h:39,
                 from
/mnt/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/names.cc:110:/mnt/gnu/gcc/objdir/./gcc/include-fixed/sys/types.h:415:
error: expected unqualified-id 
before '[' token/mnt/gnu/gcc/objdir/./gcc/include-fixed/sys/types.h:415: error:
expected ')' before '[' 
token
In file included from
/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/std_abs.h:38,
                from
/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/cmath:47,       
         from
/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11/bits/stdc++.h:41,
                 from
/mnt/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/names.cc:110:/mnt/gnu/gcc/objdir/./gcc/include-fixed/stdlib.h:39:
error: expected ')' before '{' toke
n
[...]

These errors are caused by following header issues on hpux:

/mnt/gnu/gcc/objdir/./gcc/include-fixed/sys/types.h:
   typedef struct _physadr { intptr_t r[1]; } *physadr;

/mnt/gnu/gcc/objdir/./gcc/include-fixed/stdlib.h:
_NAMESPACE_STD_START
         inline int abs(int d) { return (d>0)?d:-d; }
_NAMESPACE_STD_END

Probably, the use of `r' and `d' in the above circumstances is not a
problem.  So, I think the test should be adjusted as on AIX.  See attached
fix.

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