PiotrZSL wrote:

> I may not work for
> 
> ```c++
> void f(const char name[]);
> 
> f("111");
> ```

It should not work, as this is not array, but pointer. If you do `sizeof(name)` 
you get size of pointer, instead of number of elements in array.

https://github.com/llvm/llvm-project/pull/71701
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to