diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2021-10-26 14:00:18 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2021-10-26 14:00:18 +0200 |
commit | 88037d82d7646d8b04d5940f06e882b3778b7aec (patch) | |
tree | 3e78a6cdc81afff370aa69bacd39b5188f6ca08d /gcc/cp/parser.c | |
parent | de185d7176795b84f9d23f921442fddce8dfdd9a (diff) | |
download | gcc-88037d82d7646d8b04d5940f06e882b3778b7aec.zip gcc-88037d82d7646d8b04d5940f06e882b3778b7aec.tar.gz gcc-88037d82d7646d8b04d5940f06e882b3778b7aec.tar.bz2 |
libstdc++: Fix 17_intro/names.cc on Solaris
17_intro/names.cc and experimental/names.cc currently FAIL on Solaris
FAIL: 17_intro/names.cc (test for excess errors)
FAIL: experimental/names.cc (test for excess errors)
Excess errors:
/usr/include/sys/timespec_util.h:22: error: expected ')' before ';' token
/usr/include/stdlib.h:157: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:157: error: expected ')' before '[' token
<sys/timespec_util.h> has
extern int timespeccompare(const struct timespec *l, const struct timespec *r);
while <stdlib.h> has
typedef struct drand48_data {
unsigned int _initialised;
unsigned short int x[3];
unsigned short int a[3];
unsigned int c;
unsigned short lastx[3];
} drand48_data;
both of which are broken by defining r resp. x to ( in the testcase.
Fixed by undoing the defines. Tested on i386-pc-solaris2.11,
sparc-sun-solaris2.11, and x86_64-pc-linux-gnu.
2021-10-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
libstdc++-v3:
* testsuite/17_intro/names.cc [__sun__] (r, x): Undef.
Diffstat (limited to 'gcc/cp/parser.c')
0 files changed, 0 insertions, 0 deletions