Internal Compiler Error

Ramon P Williams rpwillia@juno.com
Fri Nov 12 08:47:00 GMT 1999


I performed a compile and received the following:  I am using Red Hat 6.0
Linux.  The compiler version is 2.7.  Ray

[rpwillia@rays_pc rpwillia]$ !!
g++ -o myown -g myownstlq.c
myownstlq.c: In function `int main(...)':
myownstlq.c:19: Internal compiler error.
myownstlq.c:19: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
myownstlq.c:19: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.
[rpwillia@rays_pc rpwillia]$ 


// Filename:    myown.c
// Description: Test program for file I/O
#include <fstream.h>
#include <iostream.h>
#include <queue>

struct node {   
        char    Node_Name[20];          // Node Name
        int     Distance;       // Distance to Next Node
        char    Neighbor[20];           // Name of Next Node
} node_type; // End of struct link
void main()  {
        int     Node_ID;
        char    Node_Name[20];
        char    Neighbor[20];
        int     Distance;

queue < node_type > q;

ifstream infile("/home/rpwillia/hawaii.dat");   // Open the file for
writing.

   while(infile.peek() != EOF) { 
        infile>>Node_ID;
        infile.getline(Node_Name, 20, ' ');
        infile.getline(Neighbor, 20, ' ');
        infile>>Distance;
        q.Node_Name = Node_Name;
        q.Next_Node = Next_Node;
        q.Distance  = Distance;
        q.push(q);
        cout<<node.Node_Name<<node.Neighbor<<node.Distance<<endl;
        //infile.seekg(1L, ios::cur);
        
   } //End while

} // End of main()


More information about the Gcc-bugs mailing list