File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5762,10 +5762,11 @@ class cppfront
5762
5762
return ;
5763
5763
}
5764
5764
5765
- // In phase 0, only need to consider namespaces and types
5765
+ // In phase 0, only need to consider alias, namespaces and types
5766
5766
5767
5767
if (
5768
5768
printer.get_phase () == printer.phase0_type_decls
5769
+ && !n.is_alias ()
5769
5770
&& !n.is_namespace ()
5770
5771
&& !n.is_type ()
5771
5772
)
@@ -5795,13 +5796,13 @@ class cppfront
5795
5796
auto & a = std::get<declaration_node::an_alias>(n.type );
5796
5797
assert (a);
5797
5798
5798
- // Namespace-scope aliases are emitted in phase 1 ,
5799
+ // Namespace-scope aliases are emitted in phase 0 ,
5799
5800
// type-scope object aliases in both phases 1 and 2, and
5800
5801
// function-scope aliases in phase 2
5801
5802
if (
5802
5803
(
5803
5804
!n.parent_is_function ()
5804
- && printer.get_phase () == printer.phase1_type_defs_func_decls
5805
+ && printer.get_phase () == printer.phase0_type_decls
5805
5806
)
5806
5807
||
5807
5808
(
@@ -6133,7 +6134,7 @@ class cppfront
6133
6134
6134
6135
// Now, emit our own template parameters
6135
6136
if (
6136
- n.template_parameters
6137
+ ( n.template_parameters && !n. is_alias ())
6137
6138
&& (
6138
6139
printer.get_phase () < printer.phase2_func_defs
6139
6140
|| n.is_object ()
You can’t perform that action at this time.
0 commit comments