[cfe-dev] Patch: making implicit cast between address spaces to be illegal
Mon P Wang
wangmp at apple.com
Wed Aug 6 09:09:07 PDT 2008
Thanks, I'll make that change.
-- Mon Ping
On Aug 6, 2008, at 12:12 AM, Bill Wendling wrote:
> On Aug 6, 2008, at 12:00 AM, Mon P Wang wrote:
>
>> Hi,
>>
>> If I remember the state of affairs properly, we decided that implicit
>> cast between address spaces should be illegal. Here is a patch that
>> will generate an error if it occurs. If you have any comments,
>> please
>> let me know.
>>
>> -- Mon Ping
>>
>> Index: include/clang/Basic/DiagnosticKinds.def
>> ===================================================================
>> --- include/clang/Basic/DiagnosticKinds.def (revision 54405)
>> +++ include/clang/Basic/DiagnosticKinds.def (working copy)
>> @@ -658,6 +658,8 @@
>> "address space attribute requires an integer constant")
>> DIAG(err_attribute_address_multiple_qualifiers, ERROR,
>> "multiple address spaces specified for type")
>> +DIAG(err_implicit_pointer_address_space_cast, ERROR,
>> + "illegal implicit cast between two pointers with different
>> address space")
>
> "space" should be "spaces" here.
>
> -bw
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list