LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 9927 - crash in objc++ codegen
Summary: crash in objc++ codegen
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: C++ (show other bugs)
Version: unspecified
Hardware: PC All
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
: 9929 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-16 06:40 PDT by Rafael Ávila de Espíndola
Modified: 2011-05-16 09:58 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Ávila de Espíndola 2011-05-16 06:40:47 PDT
clang crashes in

--------------------
class allocator {
};
class basic_string     {
struct _Alloc_hider : allocator       {
char* _M_p;
};
_Alloc_hider _M_dataplus;
};
@implementation
CrashReporterUI -(void)awakeFromNib {
}
-(void)showCrashUI:(const basic_string&)dumpfile   {
}
@end
----------------------

$ clang -cc1 -emit-llvm-only crashreporter_osx.mii

Assertion failed: (CurOffs <= CurLayObj->first), function getObjCEncodingForStructureImpl
Comment 1 Rafael Ávila de Espíndola 2011-05-16 07:43:32 PDT
Fixed in 131401.
Comment 2 Nico Weber 2011-05-16 09:58:32 PDT
*** Bug 9929 has been marked as a duplicate of this bug. ***