mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[qfcc] Treat opaque structs as not anonymous
I don't know why the segfault happened where it did, but forward-declared structs certainly can't be used as anonymous structs.
This commit is contained in:
parent
7a2335e9f4
commit
f532780dbe
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ is_anonymous_struct (specifier_t spec)
|
|||
if (!is_struct (spec.type)) {
|
||||
return 0;
|
||||
}
|
||||
if (spec.type->t.symtab->parent) {
|
||||
if (!spec.type->t.symtab || spec.type->t.symtab->parent) {
|
||||
return 0;
|
||||
}
|
||||
// struct and union type names always begin with "tag ". Untagged s/u
|
||||
|
|
Loading…
Reference in a new issue