I just tried to compile the following one liner C++ program
with gcc version 4.4.0 snapshot 20081031.

auto enum : { do

I've no idea what this lump of C++ is supposed to mean, but it
hangs the snapshot at compile time for over ten minutes on
an otherwise idle machine.

The snapshot does print the warning message

bug27.cc:2: warning: scoped enums only available with -std=c++0x or
-std=gnu++0x

before it hangs, which may mean some new code for scoped enums is broken.
No optimisation flags required.


-- 
           Summary: C++ hang for new keywords
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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

Reply via email to