-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 3396 |
| Resolution | FIXED |
| Resolved on | Mar 12, 2010 00:57 |
| Version | unspecified |
| OS | Linux |
Extended Description
Testcase:
struct sockaddr_un {
unsigned char sun_len;
char sun_path[104];
};
int a() {
int a[__builtin_offsetof(struct sockaddr_un, sun_path[len+1])];
}
Crashes with the following message:
clang: /home/eli/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h:169: llvm::APSInt clang::Expr::getIntegerConstantExprValue(clang::ASTContext&) const: Assertion `success && "Illegal argument to getIntegerConstantExpr"' failed.
Note that non-constant offsetof is a gcc extension.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"