Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2023 18:28:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 265755] clang crashes on math/octave-forge-interval on amd64 on 14
Message-ID:  <bug-265755-29464-2jJF4w0YBK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265755-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265755-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265755

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D95955fb872c6a51ff18804b93a2065185=
955c2a0

commit 95955fb872c6a51ff18804b93a2065185955c2a0
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-07-13 18:57:22 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-07-23 17:38:12 +0000

    Merge commit fde5924dcc69 from llvm-project (by Serge Pavlov):

      [clang] Reset FP options before template instantiation

      AST nodes that may depend on FP options keep them as a difference
      relative to the options outside the AST node. At the moment of
      instantiation the FP options may be different from the default values,
      defined by command-line option. In such case FP attributes would have
      unexpected values. For example, the code:

          template <class C> void func_01(int last, C) {
            func_01(last, int());
          }
          void func_02() { func_01(0, 1); }
          #pragma STDC FENV_ACCESS ON

      caused compiler crash, because template instantiation takes place at =
the
      end of translation unit, where pragma STDC FENV_ACCESS is in effect. =
As
      a result, code in the template instantiation would use constrained
      intrinsics while the function does not have StrictFP attribute.

      To solve this problem, FP attributes in Sema must be set to default
      values, defined by command line options.

      This change resolves https://github.com/llvm/llvm-project/issues/6354=
2.

      Differential Revision: https://reviews.llvm.org/D154359

    Requested by:   pkubaj
    PR:             265755, 265758
    MFC after:      1 month

    (cherry picked from commit 1cd9788408aa9ea4fd0fbc3e06bd9a4eaf8d8d22)

 contrib/llvm-project/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 4 ++=
++
 1 file changed, 4 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265755-29464-2jJF4w0YBK>