Skip to content

Add -fpolymorphic-specialisation flag (off by default at all optimisation levels)

Matthew Pickering requested to merge wip/polymorphic-spec into master

Polymorphic specialisation has led to a number of hard to diagnose incorrect runtime result bugs (see #23469, #23109, #21229 (closed), #23445 (closed)) so this commit introduces a flag -fpolymorhphic-specialisation which allows users to turn on this experimental optimisation if they are willing to buy into things going very wrong.

Fixes #23559

Merge request reports