Started 2 yr 8 mo ago
Took 1 min 25 sec on green-dragon-13

Failed Build r302507 (#5788) (May 8, 2017 10:00:38 PM)

Subproject Builds

Revision: 302507
  1. Fix PR32638 : Make sure we switch Sema's CurContext to the substituted FunctionDecl when instantiating the exception specification.

    This fixes the bug:

      int main()
        [](auto x) noexcept(noexcept(x)) { } (0);

    In the above code, prior to this patch, when substituting into the noexcept expression, i.e. transforming the DeclRefExpr that represents 'x' - clang attempts to capture 'x' because Sema's CurContext is still pointing to the pattern FunctionDecl (i.e. the templated-decl set in FinishTemplateArgumentDeduction) which does not match the substituted 'x's DeclContext, which leads to an attempt to capture and an assertion failure. 

    We fix this by adjusting Sema's CurContext to point to the substituted FunctionDecl under which the noexcept specifier's argument should be transformed, and so the ParmVarDecl that 'x' refers to has the same declcontext and no capture is attempted.

    I briefly investigated whether the SwitchContext should occur right after VisitMethodDecl creates the new substituted FunctionDecl, instead of only during instantiating the exception specification - but seeing no other code that seemed to rely on that, I decided to leave it just for the duration of the exception specification instantiation. (detail/ViewSVN)
    by faisalv

Started by upstream project phase2_modules_relay build number 3957
originally caused by:

This run spent:

  • 6 ms waiting;
  • 1 min 25 sec build duration;
  • 1 min 25 sec total from scheduled to completion.

Identified problems

Subproject Failed

This job failed because one of the jobs triggered by it failed.
Indication 1