[Bug c++/29365] New: Unnecessary anonymous namespace warnings

gcc at magfr dot user dot lysator dot liu dot se gcc-bugzilla@gcc.gnu.org
Fri Oct 6 06:08:00 GMT 2006


How to reproduce: g++ -c foo.C

Compiling the attached code using g++-4.2 generates the warning

foo.C:11: warning: 'foo::bar' has a base '<unnamed>::gazonk' whose type uses
the anonymous namespace

I fail to see why this construct should be warned about


-- 
           Summary: Unnecessary anonymous namespace warnings
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at magfr dot user dot lysator dot liu dot se
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list