[cfe-dev] Handling legacy VC++ deficiencies

João Matos ripzonetriton at gmail.com
Tue Aug 28 07:07:34 PDT 2012


I agree with Nikola and Aaron. If this issue affects a lot of code and the
implementation does not turn the code into a mess, then I think we should
consider supporting it as a compatibility option.

On Tue, Aug 28, 2012 at 2:35 PM, David Robins <llvm at davidrobins.net> wrote:

> Visual Studio 2005 generated a lot of code that uses unqualified
> pointers to member functions (think MFC dispatch tables; fear and
> loathing, sure, but the code is out there), and even 2012 supports them,
> although it now generates fully-qualified names ("&Class::Function", vs.
> accepting "Function" without "&" or "Class::"). I understand C++
> requires a qualified name; on the other hand, I want to compile this
> corpus of legacy code with Clang (for analysis, not building).
>
> Another issue in such legacy code is expecting inheritance of typedefs
> in templates, whereas the standard requires redeclaring them explicitly
> (e.g., types like value_type and pointer).
>
> I remember seeing in another email that Clang does not want to be "bug
> for bug compatible" with MSVC (and in yet another support for the bug
> where VS 2005 eats a comma in varargs macros); what's the best way to
> support compiling legacy code? Is it to be entirely unsupported? Can a
> plugin do it? Or will changes restricted to particular Microsoft compiler
> emulation (-fmsc-ver) be accepted?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



-- 
João Matos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120828/58a8758e/attachment.html>


More information about the cfe-dev mailing list