This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28514] pch vs. anonymous namespaces



------- Comment #3 from bkoz at gcc dot gnu dot org  2006-07-27 22:32 -------

Changing just the first

            case _S_concat:

to

            case ::_S_concat:

Fixes this. Wierd.

I noticed a couple of other random lookup issues, or non-issues that surprised
me. One was with static functions in global-scope anonymous namespaces have to
be explicitly qualified with a :: operator. (mt_allocator.cc patches)

global-scope enums used as integer constants in case labels of switch
statements. Fully qualified too?

Anyway. I'll attach the work-in-progress patch to convert libstdc++
__gnu_internal namespace to anonymous namespaces.

-benjamin


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28514


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]