https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61512
Bug ID: 61512
Summary: libstd++ postfix operator hangs
Product: gcc
Version: 4.4.7
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: srohit.pda at gmail dot com
Created attachment 32942
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32942&action=edit
testcase files- source code, pre-processed code, assembly code, object code and
executable
Following code hangs forever in postfix operator.
#include <iostream>
#include <set>
int main()
{
std::set<int> empty;
std::set<int>::iterator iter = empty.begin() ;
while (iter++ != empty.end())
{
std::cout << *iter << "\n";
}
return 0;
}