File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5685,10 +5685,11 @@ class cppfront
5685
5685
return ;
5686
5686
}
5687
5687
5688
- // In phase 0, only need to consider namespaces and types
5688
+ // In phase 0, only need to consider alias, namespaces and types
5689
5689
5690
5690
if (
5691
5691
printer.get_phase () == printer.phase0_type_decls
5692
+ && !n.is_alias ()
5692
5693
&& !n.is_namespace ()
5693
5694
&& !n.is_type ()
5694
5695
)
@@ -5718,13 +5719,13 @@ class cppfront
5718
5719
auto & a = std::get<declaration_node::an_alias>(n.type );
5719
5720
assert (a);
5720
5721
5721
- // Namespace-scope aliases are emitted in phase 1 ,
5722
+ // Namespace-scope aliases are emitted in phase 0 ,
5722
5723
// type-scope object aliases in both phases 1 and 2, and
5723
5724
// function-scope aliases in phase 2
5724
5725
if (
5725
5726
(
5726
5727
!n.parent_is_function ()
5727
- && printer.get_phase () == printer.phase1_type_defs_func_decls
5728
+ && printer.get_phase () == printer.phase0_type_decls
5728
5729
)
5729
5730
||
5730
5731
(
You can’t perform that action at this time.
0 commit comments