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

value printing of automatic variable is broken (off by one level of indirection?)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • High
    • Resolution: Fixed
    • master
    • 6.28/00
    • Cling
    • None
    • at least macOS.

    Description

      mac-130277:2018-custom-actions pcanal$ root.exe -b 
         ------------------------------------------------------------
        | Welcome to ROOT 6.15/01                  [https://root.cern|https://root.cern/] |
        |                               (c) 1995-2018, The ROOT Team |
        | Built for macosx64 on Sep 20 2018, 14:12:49                |
        | From heads/0002-Evolution@v6-13-04-1342-g4fb27606dc        |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
         ------------------------------------------------------------
       
      root [0] int i = 0;
       
      root [1] void *p1 = &i
      (void *) 0x110ea01c8
       
      root [2] &i
      (int *) 0x110ea01c8
       
      root [3] p2 = &i
      (int *) @0x7fff57de7a60
       
      root [4] p2
      (int *) @0x7fff57de7a60
       
      root [5] std::cout << (void*)p2 << '\n';
      0x110ea01c8
      

      Where the print out I expected from [3] and [4] would have been

      (int *) 0x110ea01c8
      
      

      Attachments

        Activity

          People

            jalopezg Javier Lopez Gomez
            pcanal Philippe Canal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: