[Bug c++/58948] New: c++0x support for enums in namespaces

sshannin at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 31 21:05:00 GMT 2013


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

            Bug ID: 58948
           Summary: c++0x support for enums in namespaces
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sshannin at gmail dot com
              Host: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
            Target: x86_64-linux-gnu
             Build: Configured with: ../src/configure -v
                    --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5'
                    --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bug
                    s --enable-languages=c,c++,fortran,objc,obj-c++
                    --prefix=/usr --program-suffix=-4.6 --enable-shared
                    --enable-linker

Created attachment 31128
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31128&action=edit
Preprocessed source

compiled with:
g++ -std=c++0x sample.cpp

Error message:
sample.cpp:3:1: error: ‘G’ in ‘enum G::A’ does not name a type

Compiles without complaint if 'std=c++0x' argument is omitted.


More information about the Gcc-bugs mailing list