You must ensure that the list is not empty before calling GetTail. If the list is empty, then the Debug version of the Microsoft Foundation Class Library asserts. Use IsEmpty to verify that the list contains elements.
// Define myList.
// Add an element to the end of the list.
// Verify the element was added to the end of the list.
ASSERT(CString(_T("ABC")) == myList.GetTail());