Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7737

Assert in cling when using undeclared variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.04/06
    • Fix Version/s: 6.06/00, 6.04/08
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Mac OS

      Description

      Cling assert sometimes when using an undeclared variable.
      For example when creating an histogram using as a variable nbin for the number of bins and bin has not been declared.

      root [0] TH1D * h1 = new TH1D("h1","h1",nbin,0,10);
      Assertion failed: ((!isa<TagDecl>(LookupCtx) || LookupCtx->isDependentContext() || cast<TagDecl>(LookupCtx)>isCompleteDefinition() || cast<TagDecl>(LookupCtx)>isBeingDefined()) && "Declaration context must already be complete!"), function LookupQualifiedName, file /Users/moneta/root/git/master/interpreter/llvm/src/tools/clang/lib/Sema/SemaLookup.cpp, line 1601.

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              moneta Lorenzo Moneta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: