https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61874

            Bug ID: 61874
           Summary: Missing DW_AT_location for "this" parameter when using
                    always_inline attribute
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: apepper at blueshiftinc dot com

Dwarf output for formal parameter “this”, includes no DW_AT_location, for a
member function that is decorated with “__attribute__ ((always_inline))”.

Test case:
-------------------
class A
{
public:
  void accessMemberInline(int a) __attribute__ ((always_inline))
  {
    m_a = a;
  }
  int m_a;
};

int main()
{
  A my_a;
  my_a.accessMemberInline(5);
}
--------------------

g++ -g -O0

Reply via email to