Hello
I'm trying to run a very basic STL program to verify the compiler's support for the STL.
I'm using Code Generation tools version 4.6.6. and my target is the LM2S3748 development board.
My program creates a list and and attempts to iterate through it. I use the debugger to examine "Val". The code is below.
The problem is after the iterator is incremented once (itr++), the next time it is accessed I wind up if the FaultISR.
I have to problem with the code using g++ on Linux or Windows.
Here is the code sample:
volatile int Val=0;
std::list<int> MyList;
MyList.push_back(0);
MyList.push_back(1);
MyList.push_back(2);
std::list<int>::iterator itr = MyList.begin();
while( itr!=MyList.end())
{
Val = *itr;
itr++;
}