]> git.draconx.ca Git - cdecl99.git/commit
Work around designated initializer bug on HP-UX cc.
authorNick Bowler <nbowler@draconx.ca>
Wed, 10 Mar 2021 01:34:05 +0000 (20:34 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 10 Mar 2021 01:34:05 +0000 (20:34 -0500)
commitf7cfa924116d4dd36b107fa534fff2b5e5e4fa13
tree0b23fc1898c0176e32408223f6b1224d6fdccb73
parent1964240454d93493ee68a75b171fdf7934332200
Work around designated initializer bug on HP-UX cc.

Work around a designated initializer bug encountered on old versions
of HP-UX.  It seems there are some glitches leading to compilation
failures when the initializers are out of order (or omitted), and
the initializer for such a member is non-constant, and there is a
type conversion involved.

This affects several of the parser actions that initialize declspec
values.  In this case, it is super easy to just change the type and
avoid type conversion, which easily avoids the bug.
src/parse.y