This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: initialized equivalence (was: dumping trees with g77 ?)


On Wed, Feb 25, 2004 at 03:04:33PM +0200, Victor Leikehman wrote:
> This seems to me less straightforward because common/equivalence blocks
> are currently translated to unions, and union fields can't be
> initialized in C.

Yes they can.

	union U { int i; double d; };
	union U u = { .d = 1.0 };


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]