re PR c++/7598 (offsetof broken)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 15 Aug 2002 10:34:05 +0000 (10:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 15 Aug 2002 10:34:05 +0000 (10:34 +0000)
commiteac5ce6c93ebae62a03b741975086d5b09151334
treeff4dfd9cbdf604cfab662616f1959f6830478c26
parent61f02ff548608d1fe98c35f724575cb87865946b
re PR c++/7598 (offsetof broken)

cp:
PR c++/7598
* typeck.c (build_unary_op): Fold offsetof idiom. Fixes
regression caused by my 2002-08-08 patch.
testsuite:
* g++.dg/other/offsetof1.C: New test

From-SVN: r56346
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/offsetof1.C [new file with mode: 0644]