This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: const static initializers versionitis
OK - that works. Thanks.
Alexandre Oliva wrote:
> On Aug 23, 2000, Gianni Mariani <gianni@mariani.ws> wrote:
>
> > I don't know how to "export" a symbol from an anonymous
> > namespace.
>
> An anonymous namespace is implicitly `using'ed :-P by the enclosing
> namespace.
>
> > $ g++ -c yy.cpp
> > yy.cpp:20: parse error before `('
>
> Move the function definition out of the namespace.
>
> --
> Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist *Please* write to mailing lists, not to me