lebedev.ri added a comment.

What will this check say about the following code?

  c++
  void function(void) {
    char c = 'x';
    int *ip = reinterpret_cast<int *>(&c);
  }

The clang'g `-Wcast-align` does not warn: https://godbolt.org/g/hVwD5S


Repository:
  rL LLVM

https://reviews.llvm.org/D33826



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

Reply via email to