[current tinderbox] failure on ...all...
Stefan Farfeleder
stefan at fafoe.narf.at
Fri Jun 10 09:16:33 GMT 2005
On Fri, Jun 10, 2005 at 11:06:16AM +0200, Dag-Erling Smørgrav wrote:
> Joseph Koshy <joseph.koshy at gmail.com> writes:
> > Dag-Erling Smørgrav <des at des.no> writes:
> > > It also seems strange to me that you on the one hand introduce a
> > > new struct to separate MD and MI interfaces, and on the other hand
> > > continue to assume that they are assignment-compatible.
> > I'd be very surprised if two C structures with identical definitions
> > were not assignment compatible.
>
> I wouldn't be surprised if the standard says they aren't.
> Unfortunately, my copy is at home.
Do you mean the following?
struct t1 { int a; } x;
struct t2 { int a; } y = { 42 };
x = y;
The types `struct t1' and `struct t2' are not compatible and thus not
assignable. See 6.2.7 and 6.5.16.1.
Stefan
More information about the freebsd-current
mailing list