[PATCH] Fix crash parsing pragma after a case or a default
Olivier Goffart
ogoffart at kde.org
Sun Sep 15 12:23:26 PDT 2013
Hi,
The attached patch fix a crash when there are pragma in case statement.
(Seen while parsing glibc source code)
void __td_ta_lookup_th_unique()
{
int t = 0;
switch (t)
{
case 1:
#pragma weak t
;
}
}
http://llvm.org/bugs/show_bug.cgi?id=16705
Regards
--
Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-crash-when-there-is-a-pragma-right-after-a-case-.patch
Type: text/x-patch
Size: 1873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130915/4cfba6f4/attachment.bin>
More information about the cfe-commits
mailing list