Compile errors on MSVC

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile errors on MSVC

Lei Zhang
The latest version of clang has many explicit calls to the destructor of Class Stmt. These produce some compile errors in MSVC.

something like this:

1>.\Stmt.cpp(112) : error C2300: 'clang::SwitchStmt' : class does not have a destructor called '~Stmt'
1>.\Stmt.cpp(476) : error C2300: 'clang::IfStmt' : class does not have a destructor called '~Stmt'
1>.\Stmt.cpp(501) : error C2300: 'clang::WhileStmt' : class does not have a destructor called '~Stmt'

I don't know how to do with this. Can someone fix it?

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compile errors on MSVC

Douglas Gregor

On Dec 23, 2009, at 10:31 PM, 章磊 wrote:

> The latest version of clang has many explicit calls to the destructor of Class Stmt. These produce some compile errors in MSVC.
>
> something like this:
>
> 1>.\Stmt.cpp(112) : error C2300: 'clang::SwitchStmt' : class does not have a destructor called '~Stmt'
> 1>.\Stmt.cpp(476) : error C2300: 'clang::IfStmt' : class does not have a destructor called '~Stmt'
> 1>.\Stmt.cpp(501) : error C2300: 'clang::WhileStmt' : class does not have a destructor called '~Stmt'
>
> I don't know how to do with this. Can someone fix it?

This should already have been fixed?

        - Doug
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev