Skip to content

Commit

Permalink
C++ front-end: qualified template specialisation can just be accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 11, 2018
1 parent 1f9deb3 commit 57a14b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.cpp

^EXIT=0$
Expand Down
2 changes: 1 addition & 1 deletion regression/cpp/Template_Instantiation2/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.cpp

^EXIT=0$
Expand Down
7 changes: 0 additions & 7 deletions src/cpp/cpp_typecheck_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 57a14b0

Please sign in to comment.