r184048 - Updated the support for contextual conversion tweaks (n3323) with a previously overlooked part: implicitly converting array sizes to size_t, rather than contextually converting them to some unique type.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Jun 17 03:50:32 PDT 2013


http://lab.llvm.org:8011/builders/clang-x86_64-debian-selfhost-rel/builds/4751/steps/compile.llvm.stage2/logs/warnings%20%2810%29

On Mon, Jun 17, 2013 at 1:08 PM, Renato Golin <renato.golin at linaro.org> wrote:
> On 17 June 2013 10:01, Evgeniy Stepanov <eugeni.stepanov at gmail.com> wrote:
>>
>> Is this a bug in the code or in the compiler? Seems like the code
>> should be fixed to either make the enum global, or explicitly cast it
>> to (int). But I'm not completely sure.
>>
>> AnalysisBasedWarnings.cpp:1126
>> SemaCast.cpp:772
>
>
> Neither of those cases are template arguments, they're just plain IO
> redirection, so it seems that Clang is wrong here.
>
> Maybe you should report this on the main clang dev list with the error
> messages and all info you can provide and see where it goes.
>
> cheers,
> --renato



More information about the cfe-commits mailing list