This is my first bug report... I am not quite sure what you mean by host/target/build triplet so ill give you what I can
complied on an 686 architecture in linux. #include<iostream> #include<cstdlib> using namespace std; /** * Matt Bachmann * CS 331 * HW1 Due: July 9th 2007 * Main method shows different ways of traversing strings */ int main() { char mary[25] = "Mary had a little lamb."; char* moby = "Thar she blows!"; cout << strlen(mary) << endl << endl; for(unsigned int i = 0; i < strlen(mary); i++) { for(unsigned int a = i; a < strlen(mary); a++) { cout << mary[a]; } cout << endl; } cout << endl; cout << strlen(moby) << endl << endl; while(moby != '\0') { cout << moby << endl; moby++; } system("PAUSE"); return EXIT_SUCCESS; } the condition in the while loop should cause an infinite loop and should be moby* -- Summary: Incorrect code compiles and runs well Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bachmann dot matt at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32786