/in/foo.cc:53:27: error: expected '}' at end of input
prev = p, p = p
^
/in/foo.cc: In member function 'void PolyList::Insert(PolyNode*)':
/in/foo.cc:53:27: error: expected ';' at end of input
/in/foo.cc:52:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while (p != NULL && p->index > newp->index)
^~~~~
/in/foo.cc:53:0: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
prev = p, p = p
/in/foo.cc:53:27: error: expected '}' at end of input
prev = p, p = p
^
/in/foo.cc: At global scope:
/in/foo.cc:53:27: error: expected unqualified-id at end of input