Hi,

I just stat using clang 8 not long ago. I  need to compile our old c++
source without changing it. It is compiled with Visual Studio before. Now I
want to migrate to clang as the compiler.

The following code segement can be compiled by clang:

1)  for (int i = 0 ; i < 6 ; i++ ) {
        ....
     }
     int k = i ;  // compiler error

2) unsigned short *s = ....
    wchar_t  *t = s ; // compiler error

I tried -ffor-scope and -fshort-wchar, but does not solve the issues.

are there clang compilation options to solve the issues?

Thanks for your help very much,

Guofeng
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to