<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Reid,<br>
<br>
May be it's worth to have the same assert for
clang::DeclSpec::TypeSpecType?<br>
<br>
Thanks,<br>
Vladimir.<br>
<br>
<div class="moz-cite-prefix">On 13.03.2017 21:59, Reid Kleckner via
cfe-dev wrote:<br>
</div>
<blockquote
cite="mid:CACs=tyJdan2S20r6sxLikEQVW36JvptQzP8WF+-LG-1G=MfGxQ@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks, fixed in r297654.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Mar 13, 2017 at 10:35 AM,
Vladimir Voskresensky via cfe-dev <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:cfe-dev@lists.llvm.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
Clang Developers,<br>
<br>
in file clang/Basic/Specifiers.h there is<br>
struct clang::WrittenBuiltinSpecs {<br>
/*DeclSpec::TST*/ unsigned Type : 5; // << must
be *6*<br>
....<br>
};<br>
<br>
"Type" field must be 6 to match DeclSpec::TST which is the
same as enum TypeSpecifierType<br>
which has<br>
TST_error // erroneous type<br>
with value 43 which can not be kept in 5 bits field.<br>
<br>
as a correct example you can see that<br>
clang::DeclSpec::TypeSpecType field is 6 bits<br>
<br>
So, we corrupt values during save in
clang::DeclSpec::SaveWrittenBu<wbr>iltinSpecs for all after
TST_image1d_t.<br>
Btw, due to this TST_error is changed to TST_float128....<br>
<br>
Hope it helps,<br>
Vladimir.<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a moz-do-not-send="true"
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev"
rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>