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++/33858] New: Spurious warning with anonymous namespace


g++ -Wall -Wextra on

namespace {
enum { bar, quux } baz;
}

gives as warning:

testwarn.cpp:2: warning: non-local variable '<unnamed>::<anonymous enum>
<unnamed>::baz' uses anonymous type

I don't thing that variables in anonymous namespace should be considered as non
local for the purpose of this warning.


-- 
           Summary: Spurious warning with anonymous namespace
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jm at bourguet dot org


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


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