https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117065
--- Comment #1 from Anonymous <iamanonymous.cs at gmail dot com> --- My mistake,the compiler produces an internal error during tree_class_check_failed when compiling the provided code with the specified options.