http://llvm.org/bugs/show_bug.cgi?id=8795
Summary: ICE when using a template parameter with sizeof() as
initializer
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Error:
llvm/tools/clang/lib/AST/ExprConstant.cpp:2461: <unnamed>::ICEDiag
CheckICE(const clang::Expr*, clang::ASTContext&): Assertion
`!E->isValueDependent() && "Should not see value dependent exprs!"' failed.
Sample:
template <class _CharT> int test(_CharT t)
{
int data [] = {
sizeof(_CharT) > sizeof(char)
};
return data[0];
}
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs