This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug exp/15364] New: regression with "&&"


http://sourceware.org/bugzilla/show_bug.cgi?id=15364

             Bug #: 15364
           Summary: regression with "&&"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


This regression was reported on irc.
It comes from my patch 1f8a1ced4eefa4c6052a3e4566781527373eff45

struct s
{
  int x;
};

struct s *s2;

int main()
{
}


(gdb) p s2 && s2->x == 0
Cannot access memory at address 0x0

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]