Issue 52996
Summary [clang] Incomplete type name for complex variables
Labels
Assignees
Reporter billionai
    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`. 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to