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

Unload macro does not clean (enough) the symbols.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 6.08/00
    • 6.06/00, 6.08/00
    • Cling
    • None
    • all (well at least linux).

    Description

      Hi,

      As discovered when investigating https://root.cern.ch/phpBB3/viewtopic.php?p=89915, unload a script/macro does not properly unload its 'jitted' content as this two sessions shows:

      root [0] .L macro1.C
      root [1] macro()
      version 1
      (int) 1
      root [2] .U macro1.C
      root [3] .L macro2.C
      root [4] macro()
      version 1
      (int) 1

      root [0] .L macro1.C
      root [1] macro()
      version 1
      (int) 1
      root [2] .U macro1.C
      root [3] macro()
      input_line_15:2:3: error: use of undeclared identifier 'macro'
       (macro())
        ^
      root [4] .rawInput
      Using raw input
      root [5] int macro();
      root [6] .rawInput
      Not using raw input
      root [7] macro()
      version 1
      (int) 1

      .

      Cheers,
      Philippe.

      Attachments

        1. macro1.C
          0.1 kB
        2. macro2.C
          0.1 kB

        Activity

          People

            axel Axel Naumann
            pcanal Philippe Canal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: