Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!wuarchive!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!quanta.eng.ohio-state.edu!raksha.eng.ohio-state.edu!rob From: rob@raksha.eng.ohio-state.edu (Rob Carriere) Newsgroups: comp.lang.c Subject: Is this a bug? Message-ID: <5690@quanta.eng.ohio-state.edu> Date: 31 Aug 90 06:15:38 GMT Sender: news@quanta.eng.ohio-state.edu Lines: 27 Nntp-Posting-Host: raksha I have found what I suspect is a bug in the C compiler I am using, but I would like confirmation before I start bad-mouthing. :-) I have code that looks like this: typedef union ut { T1 e1; T2 e2 } ut; void f( int const p1, ut const p2 ); void foo( void ) { int i; ut u; ... f( i, u ); /* ERROR: typemismatch in parameter p2 in function f */ ... } Calling it like so _does_ work f( i, *(ut const *)&u ); I cannot find anything in The Fine Manual that says I have to do acrobatics like this. Do I need to take reading 050, or does the compiler need glasses? :-) The compiler claims ANSI C conformance. SR ---