Re: A bug in SunOne C compiler?
From: Måns Rullgård (mru_at_kth.se)
Date: 11/05/03
- Next message: Guy Dallaire: "Re: Solaris 9 vxfs equivalent ?"
- Previous message: Michael Laajanen: "Re: Ultra 10 vs Sunblade 150 - power cut"
- In reply to: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Next in thread: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Reply: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 05 Nov 2003 22:29:59 +0100
Dragan Cvetkovic <me@privacy.net> writes:
>> It's the "const" that's causing the trouble. Many compilers require
>> both sides of a ?: operator to have *exactly* the same type.
>
> Thanks for your answer. I see that (at least in n869 (a draft of C99)),
> 6.5.15 the requirement is that the types need to be "compatible struct or
> union types" (in above case) and I thought that constr struct xxx and
> struct xxx are compatible.
The Sun compiler isn't fully C99 compliant, AFAIK. It could also be
interpreting the standard differently from you.
-- Måns Rullgård mru@kth.se
- Next message: Guy Dallaire: "Re: Solaris 9 vxfs equivalent ?"
- Previous message: Michael Laajanen: "Re: Ultra 10 vs Sunblade 150 - power cut"
- In reply to: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Next in thread: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Reply: Dragan Cvetkovic: "Re: A bug in SunOne C compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]