[LLVMbugs] [Bug 7153] New: clang r103774 fails to compile "class E { struct A {} mutable *member; }; "

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 17 06:58:08 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7153

           Summary: clang r103774 fails to compile "class E { struct A {}
                    mutable *member;};"
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: razeh at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The following gives me a compile error:

razeh2 at kubuntu:~/test$ cat mut.cpp
class EnclosingClass {
    struct A
    {


    } mutable *member;

};

razeh2 at kubuntu:~/test$ ~/src/llvm/Debug/bin/clang++  mut.cpp
mut.cpp:6:6: error: expected ';' after struct
    } mutable *member;
     ^
     ;                                                                          
mut.cpp:6:16: error: C++ requires a type specifier for all declarations         
    } mutable *member;
      ~~~~~~~  ^
mut.cpp:6:16: error: C++ requires a type specifier for all declarations         
    } mutable *member;
      ~~~~~~~  ^
3 errors generated.                                                            
                                                                 
razeh2 at kubuntu:~/test$ ~/src/llvm/Debug/bin/clang++  --version
clang version 2.0 (trunk 103774)
Target: x86_64-unknown-linux-gnu
Thread model: posix

It seems like this should compile, but I'm not a language lawyer.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list