<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Error: no member named 'l_125' in namespace '$__lldb_local_vars'"
   href="https://bugs.llvm.org/show_bug.cgi?id=47257">47257</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error: no member named 'l_125' in namespace '$__lldb_local_vars'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>massarelli@diag.uniroma1.it
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Error message from lldb when printing variable l_125 at line 11 or 12.

$ cat -n a.c
     1  int a, b;
     2  int *c = &b, *d;
     3  int **g_122 = &c;
     4  void func_11() {
     5    int e = a;
     6    int *f = &e;
     7    int **l_120 = &f;
     8    int *g = l_120;
     9    {
    10      int *l_125 = 0;
    11      d = &g;
    12      (**g_122) = ((**l_120) = l_125);
    13    }
    14  }
    15  int main() { func_11(); }

$ cat a.c
int a, b;
int *c = &b, *d;
int **g_122 = &c;
void func_11() {
  int e = a;
  int *f = &e;
  int **l_120 = &f;
  int *g = l_120;
  {
    int *l_125 = 0;
    d = &g;
    (**g_122) = ((**l_120) = l_125);
  }
}
int main() { func_11(); }

$ clang -v
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
bc8be3054067ac822fc6d9f4f8e64c841f530f16)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

$ clang -Og -g -o opt a.c

$ lldb opt
lldb) target create "opt"
Current executable set to '/home/stepping/output/opt' (x86_64).
(lldb) b -l 11
Breakpoint 1: where = opt`func_11 + 35 at a.c:11:7, address =
0x00000000004004a3
(lldb) r
Process 138 launched: '/home/stepping/output/opt' (x86_64)
Process 138 stopped
* thread #1, name = 'opt', stop reason = breakpoint 1.1
    frame #0: 0x00000000004004a3 opt`func_11 at a.c:11:7
   8      int *g = l_120;
   9      {
   10       int *l_125 = 0;
-> 11       d = &g;
   12       (**g_122) = ((**l_120) = l_125);
   13     }
   14   }
(lldb) p l_125
error: <lldb wrapper prefix>:43:31: no member named 'l_125' in namespace
'$__lldb_local_vars'
    using $__lldb_local_vars::l_125;
          ~~~~~~~~~~~~~~~~~~~~^
error: <user expression 0>:1:1: use of undeclared identifier 'l_125'
l_125
^
(lldb) s
Process 195 stopped
* thread #1, name = 'opt', stop reason = step in
    frame #0: 0x00000000004004aa opt`func_11 at a.c:12:28
   9      {
   10       int *l_125 = 0;
   11       d = &g;
-> 12       (**g_122) = ((**l_120) = l_125);
   13     }
   14   }
   15   int main() { func_11(); }
(lldb) p l_125 
error: <lldb wrapper prefix>:43:31: no member named 'l_125' in namespace
'$__lldb_local_vars'
    using $__lldb_local_vars::l_125;
          ~~~~~~~~~~~~~~~~~~~~^
error: <user expression 0>:1:1: use of undeclared identifier 'l_125'
l_125</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>