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

Unnamed macro: phony error if a commented closing brace is present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 6.04.00, 6.02/04
    • Fix Version/s: None
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      kubuntu, clang35

    • Development:

      Description

      Doing unrelated work, I stumbled in this behaviour: an unnamed macro does not run correctly if the last line of the file is a closing brace:

      {
         printf ("Hello\n");
      }
      // }

      I get

      mymacro.C:9:1: error: extraneous closing brace ('}')
      }
      ^

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: