Skip to content

Commit

Permalink
Bug 727732 - Nested C structures/unions does not work with groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jun 6, 2014
1 parent 84064ac commit f4388dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/scanner.l
Expand Up @@ -6675,6 +6675,18 @@ static void parseCompounds(Entry *rt)
current = new Entry;
gstat = FALSE;
initEntry();

// deep copy group list from parent (see bug 727732)
if (rt->groups)
{
QListIterator<Grouping> gli(*rt->groups);
Grouping *g;
for (;(g=gli.current());++gli)
{
ce->groups->append(new Grouping(*g));
}
}

int ni=ce->name.findRev("::"); if (ni==-1) ni=0; else ni+=2;
// set default protection based on the compound type
if( ce->section==Entry::CLASS_SEC ) // class
Expand Down

0 comments on commit f4388dc

Please sign in to comment.