[cfe-dev] Bug in c++0x not present in c++ was clang cannot parse libc++ headers? <vector>

Cédric Venet cedric.venet at laposte.net
Wed Jun 23 10:25:58 PDT 2010


Le 23/06/2010 18:30, Howard Hinnant a écrit :
> I'm not seeing this error on Mac OS.  I imagine that if someclass<T>::~someclass() isn't compiling it should be pretty easy to create a reduced test case.
>
> -Howard
>
>    

Yes, it was pretty easy, this code:

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

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

does not compile here with the commandline

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

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

svn rev 106623 with msvc2008 in debug configuration.

regards,

-- 
Cédric




More information about the cfe-dev mailing list