I'm sorry, but this is unacceptable (union members and ctors)

Dave Korn dave.korn@artimi.com
Sat Jun 16 20:25:00 GMT 2007


On 16 June 2007 19:54, michael.a wrote:

> used to aide the compiler for further robustness. In the meantime, I would
> very much appreciate it if you could share any specific directions towards
> minimally hacking the g++ frontend to let the code through. The way I tend
> to use these unions, is always an anonymous union inside a structure. Its
> harmless, and dummy constructors can be used and optimized out later. Its
> just the error that brings everything to a halt.

  Well, you could try just removing the errors like so (attached, untested).
No guarantees that this will work properly and won't just cause errors,
miscompilations or crashes further down the line.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: suppress-errors-patch.diff
Type: application/octet-stream
Size: 1535 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20070616/ac83d92a/attachment.obj>


More information about the Gcc mailing list