Git Product home page Git Product logo

Comments (9)

pirama-arumuga-nainar avatar pirama-arumuga-nainar commented on August 22, 2024 1

(Thanks for proactively pursuing this in upstream and getting it fixed, btw!)

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024 1

(Thanks for proactively pursuing this in upstream and getting it fixed, btw!)

+1. We're very appreciative of the work you've done to help us, here and on quite a few other bugs :)

from ndk.

pirama-arumuga-nainar avatar pirama-arumuga-nainar commented on August 22, 2024 1

The fix for this bug was cherry-picked and will be part of r27 to be released later this month.

from ndk.

pirama-arumuga-nainar avatar pirama-arumuga-nainar commented on August 22, 2024

Reproduces in ToT clang from today (c54657887b) as well:

clang++: /usr/local/google/work/llvm-monorepo/llvm-project/clang/lib/AST/Decl.cpp:2561: APValue *clang::VarDecl::evaluateValueImpl(SmallVectorImpl<PartialDiagnosticAt> &, bool) const: Assertion `!Init->isValueDependent()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.

Reproducer fails with errors on r26.

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

Non-regression and pretty late in the r27 cycle (and nothing available to cherry-pick yet), so planned for r28. We'll consider a cherry-pick into an r27 minor release if there's a low impact fix from upstream when the time comes.

from ndk.

yujincheng08 avatar yujincheng08 commented on August 22, 2024

this is actually a regression, see llvm/llvm-project#93828. the crash shown by @pirama-arumuga-nainar is another crash.

I replaced lines ranging from 85898 to 85912 with

    constexpr T&& operator [](uint i)&& noexcept
    {
      return move(Data[i]);
    }
    constexpr T const& operator [](uint i) const& noexcept
    {
      return Data[i];
    }
    constexpr T& operator [](uint i)& noexcept
    {
      return Data[i];
    }

and ndk 27 crashes while ndk 26 compiles.

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

Oh, sorry about that, I misunderstood. Thanks for clarifying 👍

In that case, we're still pretty dependent on upstream to provide the fix, but if one becomes available we'll aim to do a minor release for it rather than only picking it up opportunistically (there are always exceptions if the fix is invasive and likely to do more harm than good, but that's very rare).

from ndk.

yujincheng08 avatar yujincheng08 commented on August 22, 2024

upstream fixed: llvm/llvm-project@3d361b2

from ndk.

pirama-arumuga-nainar avatar pirama-arumuga-nainar commented on August 22, 2024

This is unlikely to make it to RC1. We can take it the next time we update the compiler in r27. (As we prep the next clang update, we also need to create a release branch for the r27 clang to be able to get new prebuilts.)

from ndk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.