<div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I agree! :-) It would be nice to have an option for it, like -wsystem.<br></blockquote>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">One of my colleagues pointed this issue out to me a while back too. I took a quick look but wasn't able to figure out why the warning isn't being suppressed (I'm not particularly familiar with clang). I opened <a href="http://llvm.org/bugs/show_bug.cgi?id=8129">http://llvm.org/bugs/show_bug.cgi?id=8129</a> to track the issue.</div>
<div><br></div><div>Cheers,</div><div>Lang.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Cheers, Axel.<br>
<div><div></div><div class="h5"><br>
><br>
> On 21 Oct 2010, at 10:09, Axel Naumann wrote:<br>
><br>
>> Hi,<br>
>><br>
>> compiling code that #includes <valarray> on MacOS X 10.6 triggers this:<br>
>><br>
>> warning: class  '_Array' was previously declared as a struct<br>
>> [-Wmismatched-tags]<br>
>> In file included from cint/cint/lib/dll_stl/G__cpp_valarray.cxx:7:<br>
>> In file included from ./cint/cint/lib/dll_stl/G__cpp_valarray.h:32:<br>
>> In file included from ./cint/cint/lib/dll_stl/vary.h:10:<br>
>> In file included from /usr/include/c++/4.2.1/valarray:539:<br>
>> /usr/include/c++/4.2.1/bits/valarray_after.h:62:24: note: in<br>
>> instantiation of template class 'std::valarray<unsigned long>' requested<br>
>> here<br>
>>      { return _M_index.size(); }<br>
>>                       ^<br>
>> In file included from cint/cint/lib/dll_stl/G__cpp_valarray.cxx:7:<br>
>> In file included from ./cint/cint/lib/dll_stl/G__cpp_valarray.h:32:<br>
>> In file included from ./cint/cint/lib/dll_stl/vary.h:10:<br>
>> In file included from /usr/include/c++/4.2.1/valarray:91:<br>
>> /usr/include/c++/4.2.1/bits/valarray_array.h:414:12: note: previous use<br>
>> is here<br>
>>    struct _Array<br>
>>           ^<br>
>> Is this warning correct? If so: can you get your colleagues down the<br>
>> hallway to fix it? ;-)<br>
><br>
> The problem is that 'struct _Array' is used in valarray_array.h, while<br>
>><br>
>> And probably it's just me, but I have a hard time understanding the<br>
>> warning message itself: is it claiming that structs cannot be templated?<br>
>> Where is the "class _Array" that mismatches the "struct _Array"?<br>
>><br>
>> Cheers, Axel.<br>
>> _______________________________________________<br>
>> cfe-dev mailing list<br>
>> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br>