-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Description
Bugzilla Link | 3377 |
Resolution | FIXED |
Resolved on | Mar 12, 2010 00:56 |
Version | unspecified |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
CC | @DougGregor |
Extended Description
This bug affects r62839. The reduced testcase comes from linux-2.4.37.
$ cat /tmp/bug10.c
typedef unsigned long long u64;
struct tg3_ethtool_stats {
u64 rx_octets;
};
struct {
char string[32];
} ethtool_stats_keys[(sizeof(struct tg3_ethtool_stats)/sizeof(u64))] = {
{ "rx_octets" },
};
$ gcc -c -W -Wall /tmp/bug10.c
$ ~/eclair/eclair/src/parser/dest/bin/clang -w /tmp/bug10.c
clang: /home/roberto/parser/src/include/llvm/ADT/APInt.h:793: bool llvm::APInt::operator==(const llvm::APInt&) const: Assertion `BitWidth == RHS.BitWidth && "Comparison requires equal bit widths"' failed.
0 clang 0x0000000000d87641
1 libc.so.6 0x0000003e33c32f90
2 libc.so.6 0x0000003e33c32f05 gsignal + 53
3 libc.so.6 0x0000003e33c34a73 abort + 387
4 libc.so.6 0x0000003e33c2bef9 __assert_fail + 233
5 clang 0x000000000076cda2
6 clang 0x00000000008312f5 clang::InitListChecker::CheckArrayType(clang::InitListExpr*, clang::QualType&, llvm::APSInt, bool, unsigned int&) + 1141
7 clang 0x0000000000830354 clang::InitListChecker::CheckListElementTypes(clang::InitListExpr*, clang::QualType&, bool, unsigned int&) + 852
8 clang 0x0000000000830a1d clang::InitListChecker::CheckExplicitInitList(clang::InitListExpr*, clang::QualType&, unsigned int&) + 93
9 clang 0x0000000000831689 clang::InitListChecker::InitListChecker(clang::Sema*, clang::InitListExpr*, clang::QualType&) + 41
10 clang 0x00000000007f45f5 clang::Sema::CheckInitializerTypes(clang::Expr*&, clang::QualType&, clang::SourceLocation, clang::DeclarationName, bool) + 725
11 clang 0x00000000007f4b7d clang::Sema::AddInitializerToDecl(void*, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>, bool) + 733
12 clang 0x00000000007f4c06 clang::Sema::AddInitializerToDecl(void*, clang::ASTOwningPtr<&(clang::ActionBase::DeleteExpr(void*))>) + 38
13 clang 0x00000000008c83fd clang::Parser::ParseInitDeclaratorListAfterFirstDeclarator(clang::Declarator&) + 1341
14 clang 0x00000000008c3b8b clang::Parser::ParseDeclarationOrFunctionDefinition(llvm::SmallVector<void*, 4u>) + 1339
15 clang 0x00000000008c3f48 clang::Parser::ParseExternalDeclaration() + 104
16 clang 0x00000000008c4386 clang::Parser::ParseTopLevelDecl(void&) + 22
17 clang 0x00000000007e52db clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, bool, bool) + 219
18 clang 0x0000000000589ad4
19 clang 0x000000000058ea29 main + 1417
20 libc.so.6 0x0000003e33c1e576 __libc_start_main + 230
21 clang 0x000000000054d3e9
Aborted
$