re PR c++/14932 (cannot use offsetof to get offsets of array elements in g++ 3.4...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 1 Jun 2004 10:22:11 +0000 (10:22 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 1 Jun 2004 10:22:11 +0000 (10:22 +0000)
commit07166901ad64e6c3d8c85ee1d54613bd662ff603
treeb34d0c7e367f29411b18f33909927293883456a5
parent1ec4e9c30bd66dab3fabb6958187be4c57e26052
re PR c++/14932 (cannot use offsetof to get offsets of array elements in g++ 3.4.0 prerelease)

PR c++/14932
* parser.c (cp_parser_postfix_expression): Allow subscript
operator in offsetof.

PR c++/14932
* g++.dg/parse/offsetof4.C: New test.

From-SVN: r82538
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/offsetof4.C [new file with mode: 0644]