[llvm-bugs] [Bug 33653] New: After r297702, assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file include/llvm/Support/Casting.h, line 255.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 30 04:39:24 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33653

            Bug ID: 33653
           Summary: After r297702, assertion failed: (isa<X>(Val) &&
                    "cast<Ty>() argument of incompatible type!"), function
                    cast, file include/llvm/Support/Casting.h, line 255.
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvm-bugs at lists.llvm.org

The fix for bug 30413, which was committed in
https://reviews.llvm.org/rL297702, breaks at least the FreeBSD devel/sope2 and
devel/sope3 ports, but maybe also some other Objective-C programs using
GNUstep.

See the clang 5.0.0 tests in https://bugs.freebsd.org/219139, in particular
http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/sope2-2.3.20.log
and
http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/sope3-3.2.8.log

Minimized test case:

// clang -cc1 -triple x86_64 -S -w -fobjc-runtime=gnustep-1.6 sope-minimized.m
typedef a;
@interface b {
  a : 1;
}
@end
@implementation b
@end

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170630/428b49a5/attachment.html>


More information about the llvm-bugs mailing list