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

Redefinition of vector (and any other stl class) crashes the prompt

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 6.04.00
    • 6.06/00, 6.04/02
    • Cling
    • None
    • linux, clang 36, dbg build

    Description

      This code crashes the root prompt

      std::vector<float> a
      std::vector<float> a

      Full set of messages:

      root [0] std::vector<float> a
      (std::vector<float> &) @0x7fe557e7e028
      root [1] std::vector<float> a
      ROOT_prompt_1:1:20: error: redefinition of 'a'
      std::vector<float> a
                         ^
      ROOT_prompt_0:1:20: note: previous definition is here
      std::vector<float> a
                         ^
      root.exe: root/interpreter/llvm/src/tools/clang/lib/CodeGen/ModuleBuilder.cpp:107: virtual llvm::Module *clang::CodeGeneratorImpl::StartModule(const std::string &, llvm::LLVMContext &, const clang::CodeGenOptions &): Assertion `OldBuilder->DeferredDeclsToEmit.empty() && "Should have emitted all decls deferred to emit."' failed.

      Attachments

        Activity

          People

            axel Axel Naumann
            dpiparo Danilo Piparo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: