rogfer01 added a comment.

`clang::Sema::IsOverload` explicitly forbids the `__restrict` case for the 
qualifier of non-static member functions. I assume `__unaligned` is not 
forbidden because the MSVC ABI does encode this qualifier while the Itanium ABI 
currently does not.

This patch just makes the attached test case fail like the one below:

  // Compile with        "-target x86_64-unknown-linux-gnu -x c++ 
-fms-extensions" 
  // and compare it with "-target x86_64-pc-windows-msvc -x c++ 
-fms-extensions" 
  void foo(__unaligned int* a) { }
  void foo(int *a) { }

Regards.


https://reviews.llvm.org/D31976



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to