long_double?
John David Anglin
dave@hiauly1.hia.nrc.ca
Sat Nov 17 18:38:00 GMT 2001
In stdlib.h, we have
# ifndef _LONG_DOUBLE
# define _LONG_DOUBLE
typedef struct {
uint32_t word1, word2, word3, word4;
} long_double;
# endif /* _LONG_DOUBLE */
and
extern long_double strtold(const char *, char **);
If a program has
long double res = strtold (strtold (garglist->word->word, &ep);
then the following error occurs:
../../builtins/../../builtins/printf.def:1013: incompatible types in assignment
How is this supposed to work?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list