Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r9e23b446 re8616b6  
    597597                        guard_symtab guard { *this };
    598598                        // implicit add __func__ identifier as specified in the C manual 6.4.2.2
     599                        // This is a C name and so has C linkage.
    599600                        static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{
    600601                                CodeLocation{}, "__func__",
     
    602603                                        new ast::BasicType{ ast::BasicType::Char, ast::CV::Const },
    603604                                        nullptr, VariableLen, DynamicDim
    604                                 }
     605                                },
     606                                nullptr,
     607                                ast::Storage::Classes(),
     608                                ast::Linkage::C,
    605609                        } };
    606610                        __pass::symtab::addId( core, 0, func );
     
    681685        if ( __visit_children() ) {
    682686                // unlike structs, traits, and unions, enums inject their members into the global scope
     687                maybe_accept( node, &EnumDecl::base );
    683688                maybe_accept( node, &EnumDecl::params     );
    684689                maybe_accept( node, &EnumDecl::members    );
Note: See TracChangeset for help on using the changeset viewer.