Skip to content

Commit 61a6acd

Browse files
committed
Name resolution may require further template instantiation
1 parent 4c6cfc0 commit 61a6acd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

regression/cpp/Template_Instantiation3/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/systemc/Array3/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

src/cpp/cpp_typecheck_resolve.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,9 @@ exprt cpp_typecheck_resolvet::resolve(
15451545
{
15461546
typet instance=
15471547
disambiguate_template_classes(base_name, id_set, template_args);
1548+
1549+
cpp_typecheck.elaborate_class_template(instance);
1550+
15481551
identifiers.push_back(exprt(ID_type, instance));
15491552
}
15501553
else

0 commit comments

Comments
 (0)