"-Zvirtual-function-elimination" is very buggy, always generate "segmentation fault" binary

Just found that "-Zvirtual-function-elimination" option is very buggy, always generate a binary with "segmentation fault" when running it.

Maybe it need rework/reimplementation or just remove this option completely.

Compiled 16 different projects all failed to run on macOS. Not sure whether other OSes affected also.

Perhaps

Or related.

Possibly, but that's not really an URLO topic. Note also that -Z options are unstable. (Unfortunately there's no real distinction between "unstable but reasonable to use" and "unstable and busted".)

Does it still happen if you also pass -Zbuild-std?

Tried build with -Zbuild-std got the same error segmentation fault.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.