Skip to content

Commit 32d1ebd

Browse files
committed
refactor(to_cpp1): avoid conflict with branch optional_typename
1 parent fd2dab7 commit 32d1ebd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/to_cpp1.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,12 @@ class cppfront
17221722
bool is_local_name = true,
17231723
bool is_qualified = false,
17241724
bool is_class_member_access = false,
1725-
bool emit_identifier = true
1725+
bool is_dependent = false,
1726+
bool emit_identifier = true
17261727
)
17271728
-> void
17281729
{ STACKINSTR
1730+
(void)is_dependent; // Avoid conflict with #533.
17291731
assert( n.identifier );
17301732
auto last_use = is_definite_last_use(n.identifier);
17311733

@@ -5278,7 +5280,7 @@ class cppfront
52785280
{
52795281
auto list = std::string{""};
52805282
if (parent->specialization_template_arguments) {
5281-
list = print_to_string(*parent->specialization_template_arguments, 0, false, false, false, false);
5283+
list = print_to_string(*parent->specialization_template_arguments, 0, false, false, false, false, false);
52825284
}
52835285
else if (parent->template_parameters) {
52845286
auto separator = std::string{"<"};
@@ -5965,7 +5967,7 @@ class cppfront
59655967

59665968
auto specialization_template_arguments = std::string{};
59675969
if (n.specialization_template_arguments) {
5968-
specialization_template_arguments = print_to_string(*n.specialization_template_arguments, 0, false, false, false, false);
5970+
specialization_template_arguments = print_to_string(*n.specialization_template_arguments, 0, false, false, false, false, false);
59695971
}
59705972

59715973
printer.print_cpp2(
@@ -6197,7 +6199,7 @@ class cppfront
61976199
printer.print_cpp2("class ", n.position());
61986200
emit(*n.identifier);
61996201
if (n.specialization_template_arguments) {
6200-
emit(*n.specialization_template_arguments, 0, false, false, false, false);
6202+
emit(*n.specialization_template_arguments, 0, false, false, false, false, false);
62016203
}
62026204

62036205
// Type declaration
@@ -7090,7 +7092,7 @@ class cppfront
70907092
else if (!n.is_object_with_function_typeid()) {
70917093
emit(*n.identifier);
70927094
if (n.specialization_template_arguments) {
7093-
emit(*n.specialization_template_arguments, 0, false, false, false, false);
7095+
emit(*n.specialization_template_arguments, 0, false, false, false, false, false);
70947096
}
70957097
}
70967098

0 commit comments

Comments
 (0)