[Bug libstdc++/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)

2017-06-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81056

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-06-12
 Ever confirmed|0   |1

--- Comment #1 from Jonathan Wakely  ---
(In reply to John David Anglin from comment #0)
> 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.

It's a problem because it means some valid C++ programs that include 
won't compile, but only programs that use 'r' and 'd' as macros, which is
insane. So simply adjusting the test is fine.

The patch is OK for trunk - thanks.

[Bug libstdc++/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81056

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2
Summary|[7,8 Regression] FAIL:  |[7/8 Regression] FAIL:
   |17_intro/names.cc (test for |17_intro/names.cc (test for
   |excess errors)  |excess errors)