<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60088>60088</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Unable to print some variables in gdb (type information missing)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          gusain
      </td>
    </tr>
</table>

<pre>
    I'm using Clang 15.0.7 to compile (with gcc tool chain 11.2) and llvm lld to link. When I load binary, for some of the symbols, type information is missing and I see <incomplete type> in gdb.

Interesting enough, if I do 'list <file where type is defined>` in gdb and then retry, it works as expected and no more incomplete type message. 
Only reason for filling it against llvm is that when I compile same source with gcc and gold linker, I don't run into this problem. I'm not sure where problem is actually.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkk9vnEwMxj_NcLGCYMj-4cAhb5KV9vSeqp4NY8DNMLMam2z321fDblpVvYCEsf17_DwowlMg6szuP7N7K3DVOaZuWgU5FH10t-5s7GGBVThM8OoxTFDvyqo8gEYY4nJhT2Ds8co6wzQMoDF6GGbkAHVdWmNbwODA-88FvHe5zXP4KOH7TAHO4CM66Dlguhn7CmNMIHEhiCPoTCC3pY9ecklvFwIOY0wLKscALLCwbGR5xRmECEzzyiGDeVLaekzzDhxgcn1pqjdTvdyf56CUSDS3U4jrNOclPMIZXARjD55F87gxS7zOlOiBIOBo5EDONO9mXz2GbwyaRSXSuxhWuMb0IYAC9PNCg5LbfgsRlpiymr9IYSERnKiEO-L_wd8gEUoM22FG9j7jsgJOyEH0flcW0Bk1Q-aTftkiuBBIXNNA8NufvH6K3m0uUMqYWXAw9qCQ1gAcNILOLHBJsfe0lHDPQIgKsqavWzyqeTkOuqL3t7JwXePapsWCunp_aNqqPbZ1MXd9W1m0A-5c1bd1O46jG5sGrUWium36gjtb2aaq6721u2NdlzvXjhU9Y3XYHfY4onmuaEH2ZVZcxjQVLLJSt6-q47Hw2JOXLcbWBrrCVjTW5lSnLvc89esk5rnKtsqfKcrqqfsWsPeUw3lJHPQewU9MnD_Ll8PGHv8J4SOBxrbFmnw3q17ENC_Gnow9Tazz2pdDXIw95ZWP19MlxR80qLGnDVSMPW1CfgUAAP___0MyLA">