Skip to content

Commit 12e8f46

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2341 from tautschnig/c++-qualified
C++ front-end: qualified template specialisation can just be accepted
2 parents 1f9deb3 + 57a14b0 commit 12e8f46

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

regression/cpp/Qualifiers_In_Template_Specialisation1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
main.cpp
33

44
^EXIT=0$

regression/cpp/Template_Instantiation2/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
main.cpp
33

44
^EXIT=0$

src/cpp/cpp_typecheck_template.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -635,13 +635,6 @@ void cpp_typecheckt::convert_template_function_or_member_specialization(
635635
cpp_declaratort declarator=declaration.declarators().front();
636636
cpp_namet &cpp_name=declarator.name();
637637

638-
if(cpp_name.is_qualified())
639-
{
640-
error().source_location=cpp_name.source_location();
641-
error() << "qualifiers not expected here" << eom;
642-
throw 0;
643-
}
644-
645638
// There is specialization (instantiation with template arguments)
646639
// but also function overloading (no template arguments)
647640

0 commit comments

Comments
 (0)