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

regression in cling: a final `;` is expected after `int a,b`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.26/00
    • master, 6.24/00
    • Cling
    • None
    • any

    Description

      Up until LCG91 the interpreter happily swallowed the expression int a,b (without a final semicolumn). Now it expects the user to conclude the statement somehow (a semicolumn works):

      # on master:
      ~ root -l
      root [0] int a, b
      root (cont'ed, cancel with .@) [1]
       
      # on lxplus7:
      [eguiraud@lxplus043 ~]$ which root
      /cvmfs/sft.cern.ch/lcg/views/LCG_91/x86_64-centos7-gcc62-opt/bin/root
      [eguiraud@lxplus043 ~]$ root -l -b
      root [0] int a, b
      (int) 0
      root [1] 
      

      This reflects in a hard error when using `int a,b` in a cell of a ROOT notebook: since the statement is not "finished" the cell cannot be interpreted correctly anymore.

      Attachments

        Activity

          People

            jalopezg Javier Lopez Gomez
            eguiraud Enrico Guiraud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: