Fix crashes while parsing template parameters in C++ code
Fix crashes while parsing template parameters in C++ code

AlreadyConsideredClassContainer has to be cleared when there is no base class

Task-number: QTCREATORBUG-8128

Change-Id: Iad82f2efc361aeb38c88a751c86aa572d373557a
Reviewed-by: Cristian Tibirna <069eb5998c75c7531d22632c1d393dee8afb295f@kde.org>
Reviewed-by: Orgad Shaneh <2b010cbad792a0c0a8175f752f93f83941fc6bc1@gmail.com>
Reviewed-by: David Schulz <f07954e8cc0c222cd136162588d217f330598215@digia.com>

darksylinc/qt-creator,colede/qtcreator,darksylinc/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,Distrotech/qtcreator,richardmg/qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,malikcjm/qtcreator,darksylinc/qt-creator,colede/qtcreator,xianian/qt-creator,darksylinc/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,colede/qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,richardmg/qtcreator,duythanhphan/qt-creator,danimo/qt-creator,colede/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,danimo/qt-creator,xianian/qt-creator,farseerri/git_code,syntheticpp/qt-creator,amyvmiwei/qt-creator,duythanhphan/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,syntheticpp/qt-creator,xianian/qt-creator,farseerri/git_code,omniacreator/qtcreator,richardmg/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,Distrotech/qtcreator,farseerri/git_code,kuba1/qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,malikcjm/qtcreator,malikcjm/qtcreator,farseerri/git_code,maui-packages/qt-creator,malikcjm/qtcreator,xianian/qt-creator,maui-packages/qt-creator,farseerri/git_code,kuba1/qtcreator,Distrotech/qtcreator,xianian/qt-creator,richardmg/qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,malikcjm/qtcreator,martyone/sailfish-qtcreator,syntheticpp/qt-creator,syntheticpp/qt-creator,darksylinc/qt-creator,farseerri/git_code,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,duythanhphan/qt-creator,richardmg/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,syntheticpp/qt-creator,duythanhphan/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,richardmg/qtcreator,kuba1/qtcreator,colede/qtcreator,kuba1/qtcreator,danimo/qt-creator,maui-packages/qt-creator,colede/qtcreator,duythanhphan/qt-creator,AltarBeastiful/qt-creator,darksylinc/qt-creator,omniacreator/qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,maui-packages/qt-creator,syntheticpp/qt-creator,colede/qtcreator