https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54569

Alexander Grund <alexander.gr...@tu-dresden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexander.grund@tu-dresden.
                   |                            |de

--- Comment #3 from Alexander Grund <alexander.gr...@tu-dresden.de> ---
Created attachment 51154
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51154&action=edit
preprocessed TBB source

Might have a related issue: https://github.com/oneapi-src/oneTBB/issues/489

The test segfaults when compiled with -O3 but works when compiled with
-fno-ipa-cp-clone

UBSAN reports "runtime error: execution reached an unreachable program point",
but only for the crashing version and Valgrind reports an invalid read, also
only for the crashing version.

Most notably the crash disappears when the direct call to the template function
is replaced by getting a pointer to it first and calling the function through
that on the next line, which shouldn't make any difference.

Reply via email to