https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122968
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
At -O0 -g on the trunk:
```
.long .LASF5 # DW_AT_name: "a_var"
.byte 0x1 # DW_AT_decl_file (/app/example.cpp)
.byte 0x9 # DW_AT_decl_line
.byte 0xc # DW_AT_decl_column
.long 0x10a # DW_AT_type
.uleb128 0x3 # DW_AT_location
.byte 0x91 # DW_OP_fbreg
.sleb128 -24
.byte 0x6 # DW_OP_deref
.uleb128 0xd # (DIE (0xdd) DW_TAG_variable)
.long .LASF6 # DW_AT_name: "b_var"
.byte 0x1 # DW_AT_decl_file (/app/example.cpp)
.byte 0x9 # DW_AT_decl_line
.byte 0x13 # DW_AT_decl_column
.long 0x111 # DW_AT_type
.uleb128 0xe # (DIE (0xe9) DW_TAG_variable)
```
There is one for a_var now but not one for b_var.