https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105865
--- Comment #2 from Alec <acox at reliablecontrols dot com> --- (In reply to Alec from comment #1) > It also works when trying to use a template helper outside of the constructor > See the example here https://godbolt.org/z/3raenhnjr A regular static_cast placed where the template constexpr function is called in that example will work, and obviously a define macro will work.