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

cling::InputValidator::validate and #ifdef

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.00.00
    • Fix Version/s: 6.10/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      All

      Description

      Hi,

      cling::InputValidator::validate does not handle give the correct result in some case when #ifdef are involved.

      {
      #ifdef ClingWorkAroundMissingDynamicScope
      if (TFile *f = (TFile*)gROOT->ProcessLine("gFile")) {
      #else
      if (gFile!=0) {
      #endif
      }
      }

      is considered incomplete. Moving the { out side of the #ifdef section, make the code pass the validation.

      Cheers,
      Philippe.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: