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

Parser error when calling a macro with arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.04.00, 6.02/08
    • 6.04.00
    • Cling
    • None
    • linux/mac

    Description

      This macro

      void macro(TString abc)
      {
        std::cout << abc.Data() << "\n";
      }

      cannot be invoked from commandline with arbitrary arguments, for example the first command works, the second crashes:

      root -b -q 'macro.C("awds(fgeg")'
      root -b -q 'macro.C("awds)fgeg")'

      Attachments

        Activity

          People

            esakella Elissavet Sakellari (Inactive)
            dpiparo Danilo Piparo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: