[Bug 265809] clang never finishes on one particular C++ file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Aug 2022 06:40:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265809

            Bug ID: 265809
           Summary: clang never finishes on one particular C++ file
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

Created attachment 235873
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235873&action=edit
unity_1935_cxx.cxx.E.cxx.bz2

clang never finishes on the attached (compressed) C++ unit.

The command
> c++ -fno-strict-aliasing -fno-omit-frame-pointer -march=native -O3 -fPIC -c unity_1935_cxx.cxx.E.cxx

doesn't finish in hours.

But when -fno-strict-aliasing is removed it finishes within a minute.

> $ c++ --version
> FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
> Target: x86_64-unknown-freebsd13.1
> Thread model: posix
> InstalledDir: /usr/bin


This problem was originally discovered when one C++ module in the psi4 project
(https://github.com/psi4/psi4) never finished to compile.

-- 
You are receiving this mail because:
You are the assignee for the bug.