[LLVMbugs] [Bug 7467] New: Code ok in C++ mode does not parse in C++0x mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 12:28:12 PDT 2010


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

           Summary: Code ok in C++ mode does not parse in C++0x mode
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: cedric.venet at laposte.net
                CC: llvmbugs at cs.uiuc.edu


The following code:

template<class _Tp>
class shared_ptr {
public:
     ~shared_ptr();
};

template<class _Tp>
shared_ptr<_Tp>::~shared_ptr() {}

does not compile with the commandline:

         clang++ --std=c++0x test.cpp

but it works without problems if I don't specify the --std=c++0x (ie clang++
test.cpp compile fine)

svn rev 106623 with msvc2008 in debug configuration.

-- 
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