Re: Proposal: Reduce void pointer arithmetic in favor of char pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 2018-12-16 17:22, William Woodruff wrote:

>On 12/16/18 6:02 AM, Jan Engelhardt wrote:
>> Though illegal in standard C, clang does support the extension:
>> 
>> 11:59 a4:~ > echo -en 'int main() { void *x = &x; x = x + 1; }' | clang 
>> -x c -c -o /dev/null - -Wall
>> 11:59 a4:~ > 
>> (clang 6.0.1)
>> fra
>
>Sorry, I should have clarified: the source files in question are C++,
>not C. clang does indeed support the extension in C, but it's a strict
>error in C++ even with extern "C":

Ah yes. That should use char* casting.



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux