[LLVMbugs] [Bug 5659] New: Assertion failed: (cast<PointerType>(C->getType())-> getElementType() == Ty && "Computed GetElementPtr has unexpected type!"), function SymbolicallyEvaluateGEP, file ConstantFolding.cpp, line 609.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 1 09:48:55 PST 2009


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

           Summary: Assertion failed: (cast<PointerType>(C->getType())-
                    >getElementType() == Ty && "Computed GetElementPtr has
                    unexpected type!"), function SymbolicallyEvaluateGEP,
                    file ConstantFolding.cpp, line 609.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Analyses
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


witten ~# cat 003.cpp
struct font_params {
  int x_height;
};
typedef int font_params::*param_t;
static struct {
  const char *name;
  param_t par;
} param_table[] = {
  { "x-height", &font_params::x_height },
};
int main(int argc, char **argv)
{
}

witten ~# clang++ --version          #llvm of the same revision
clang version 1.1 (trunk 90031)
Target: i386-unknown-freebsd9.0
Thread model: posix

witten ~# clang++ -O2 003.cpp 
Assertion failed: (cast<PointerType>(C->getType())->getElementType() == Ty &&
"Computed GetElementPtr has unexpected type!"), function
SymbolicallyEvaluateGEP, file ConstantFolding.cpp, line 609.
Stack dump:
0.      Program arguments: /usr/local/bin/../libexec/clang-cc -triple
i386-unknown-freebsd9.0 -S -disable-free -main-file-name 003.cpp
-relocation-model static -disable-fp-elim -unwind-tables=0 -mcpu pentium4 -O2
-fmessage-length 152 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ztELyX.s -x c++ 003.cpp 
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Combine redundant instructions' on function
'@__cxx_global_initialization'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)


-- 
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