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

            Bug ID: 89758
           Summary: queue and priority queue show invalid size when empty
                    container is poped. Further pushes lead to
                    inconsistent values
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anshulaggarwal987654321 at gmail dot com
  Target Milestone: ---

Created attachment 45988
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45988&action=edit
this code does the operations and prints the inconsistencies

After poping an empty queue or a dequeue , when we check the size it outputs
UINT64_MAX -1 = "18446744073709551615" (bug1)

incase of queue, pushing leads to inconsistent results (bug2)

incase of priority queue, pushing gives out an error ( not a bug)

Reply via email to