C++ front-end: qualified template specialisation can just be accepted

This commit is contained in:
Michael Tautschnig 2018-06-11 17:25:24 +00:00
parent 1f9deb313f
commit 57a14b0889
3 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.cpp
^EXIT=0$

View File

@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.cpp
^EXIT=0$

View File

@ -635,13 +635,6 @@ void cpp_typecheckt::convert_template_function_or_member_specialization(
cpp_declaratort declarator=declaration.declarators().front();
cpp_namet &cpp_name=declarator.name();
if(cpp_name.is_qualified())
{
error().source_location=cpp_name.source_location();
error() << "qualifiers not expected here" << eom;
throw 0;
}
// There is specialization (instantiation with template arguments)
// but also function overloading (no template arguments)