Skip to content

[llvmgcc] Structure field with non-constant offset crashes llvmgcc #732

@lattner

Description

@lattner
Bugzilla Link 360
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version 1.0
OS All

Extended Description

Here's a testcase:


int sub1(int i, char *pi) {
typedef int foo[i];
struct bar {foo f1; int f2;} *p = (struct bar *) pi;
return p->f2;
}

I'm not sure exactly what a variable sized array IN a structure means, but we
shouldn't segfault in any case.

-Chris

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] insteadllvm-toolsAll llvm tools that do not have corresponding tag

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions