[LLVMbugs] [Bug 6441] New: Assertion failed: (!RD->getNumBases() && "FIXME: Handle zero-initializing structs with bases and " "pointers to data members.")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 28 07:34:21 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6441

           Summary: Assertion failed: (!RD->getNumBases() && "FIXME:
                    Handle zero-initializing structs with bases and "
                    "pointers to data members.")
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hinokind at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4333)
 --> (http://llvm.org/bugs/attachment.cgi?id=4333)
testcase

$ cat assert10.cc 
typedef struct system_variables SV;
class foo {
    foo(const char *name_arg, void* func= __null)     {
    }
};
class bar :public foo {
    public:   bar(const char *name_arg, void* func= __null)    
:foo(name_arg,func)   {
    }
};
class foobar :public bar {
    public:   long SV::*offset;
    foobar(char *name_arg, long SV::*offset_arg)     :bar(name_arg)   {
    }
};
struct system_variables {
    long auto_increment_increment;
};
foobar whatever("auto_increment_increment", &SV::auto_increment_increment);


$ clang assert10.cc 
Assertion failed: (!RD->getNumBases() && "FIXME: Handle zero-initializing
structs with bases and " "pointers to data members."), function
EmitNullConstant, file CGExprConstant.cpp, line 1002.
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert10.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-x8ke7w.s -x c++ assert10.cc 
1.    <eof> parser at end of file
2.    assert10.cc:18:8: LLVM IR generation of declaration 'whatever'
3.    assert10.cc:18:8: Generating code for declaration 'whatever'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)


$ clang --version
clang version 1.1 (trunk 97399)
Target: x86_64-unknown-freebsd8.0
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list