This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Anonymous union members problem
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Mathieu Fluhr <mfluhr at nero dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 19 Apr 2004 08:15:34 -0500
- Subject: Re: Anonymous union members problem
- References: <1082380113.10142.9.camel@c-l-175>
Hi Mathieu,
>Is this invalid C++ code ?
Yes, this is invalid C++ code.
>If yes is there a way to make it valid and compilable under Linux ?
Take the typedef out of the anonymous struct.
--or--
Name the anonymous struct so it is no longer anonymous.
I favor the second.
HTH,
--Eljay