<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJytVE1zmzAQ_TVw2YlHCLDNgYMbt51eeuhkJkePZBZQIyNGEkmcX9-VjJvPpp1JGUAr9u3b1RMraZpjfd3jAHtzGJVWQ0dWg3CnfB-_abyHW2GVkBrdXgsCNAbdkPCVB4d4AG9gnDz4HucAj-CPI8IgDghmiJ4G5dSpoTUUs_fKDAv4gaKJ-QIp0bknoJg-WTJLGNQtXNzRBLQxNw60uqEEvXIJ2yZsM7-XbL5P0_wyS_LPNDQijhvYSGnxFr5PB4k2fFhCwtfb693V5utOCoe7UHTCqxMD0BXCJYWTSbjN1S6uaL4CBRGooVGWlgTOWxXWcQmmbR364Gf37TIwkjlr-Zy8fUqOAykfBJnJ89-Z-Pq8E602wr-sEdlTGnn0uHPqAc80_G2F4vu6Vxqh2--j_i_1zTfvSAyPGsvsTxrzf9FY8vfqXz_H5v9FMll8bFvz4vm2zln-JnTohIiEUPkQS1cORosOBw_q1CstQUPCYMfSHhuOgrwgmPIB4AxMLnBQsjG23ENoE2q5rpE06CO43ty5yBT9wgXs-V9csgWkTZ03VV6JVEy-N7aWSmvqT6HSyeq6936MPwL_QndHbTnJBcXTROvb83AxWvOT1KKpcm5CR0bJq2qZ9nXOJMvKFZPVXsoSV3lZZS3LRSFWedvIMtVConZ1Un5Kym368ZSq5oxzlrGCZ5yexVqueLUqi6zK1m3RNknB8CCUXgSehbFdautISaePI6dWzrtHp3BOdQPiuUKvvI6T08FVbuHb8MbB1xr7-gBNY611LPQXCySoRA>52996</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] Incomplete type name for complex variables
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
billionai
</td>
</tr>
</table>
<pre>
When compiling code with complex variablesclang doesn't seem to put the complete type name on the debuginfo section. Reading clang's debuginfo with `readelf -w` looks like this
```
<1><da>: Abbrev Number: 6 (DW_TAG_base_type)
<db> DW_AT_name : (indirect string, offset: 0xf6): complex
<df> DW_AT_encoding : 3 (complex float)
<e0> DW_AT_byte_size : 32
```
While gcc's looks like this:
```
<1><b1>: Abbrev Number: 2 (DW_TAG_base_type)
<b2> DW_AT_byte_size : 8
<b3> DW_AT_encoding : 3 (complex float)
<b4> DW_AT_name : (indirect string, offset: 0x34): complex float
```
While the float enconding is present in the file, the name doesn't contain it, so using `ptype z` on gdb only shows the type as `complex`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVE2PmzAQ_TVwGW1kTELgwCHdtFUvPVQr7TGywxjcdTDCJrvZX9-xQ7of3W4rtQiwzTy_eX5mLG1zqm877GFvD4M2um-p1yDca9_FbwYf4ChGLaRBtzeCAI1F1yd87cEhHsBbGCYPvsN5gkfwpwGhFwcE28dIg3Jqda8szdl7bfsFfEPRxHyBlOjcM1BMnxRsJAwaBVf3NABj7Z0Do-8oQaddwrYJ28zvgs33eZhfZ0n-kZpGxHYDGylHPMLX6SBxDB8KSHi5vd3dbD7vpHC4C6ITXp0ZgK4wXdJ06hJuc7OLK5qvQEEEum_0SEsC50cd1nENVimHPsTZgyoCI3VnL1-Sq-fk2JPzwZCZPP-ZiZeXnVDGCv9aI7LnNPLkcef0I15o-NsOxfdtpw1Cu99H_1_7m2_esRiePJbZ7zzmf-Ox5O_pL19i8_9imVz-27bmy5fbOmf5k9GhEiISgvI-StcOhhEd9h70uVYUQUPC0I_SngqOJnlBMO0DwFmYXOCgZEMsucdQJlRybSOpMSdwnb13kSnGhQvYy79YsAWkTZ03VV6J1GtvsE5WH84FudrCl_6NglZ2_PVgSKfR1J33Q_xp-Ce6WyrhSS4ISgNjjpfmahjtd3KWhtq5CR11VryqirSrS57lKhdrlYkCVbWuipIrVgpWCVmKJkuNkGhcEEn6Ul1zxjnL2JJnnJ5FKde8Wq-WWZWVaqmaZMnwILRZhMQLO7bpWEcNdM44ChrtvHsKCud02yNe-MXkOzvWUhtDJ5bQaRRcR7U_AAilkt8">