re PR c++/28294 (ICE with invalid use of __builtin_offsetof)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 15 Jul 2006 09:29:32 +0000 (09:29 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 15 Jul 2006 09:29:32 +0000 (09:29 +0000)
commit0a9367cbdbdc9e5302e7ac39b00c26e698c4100d
treec2296541e245a9ff4ccd83c21f2f887c4b0714c1
parent6ae9b8759e83dcfba6176c397aa703acb48d1f8b
re PR c++/28294 (ICE with invalid use of __builtin_offsetof)

PR c++/28294
* semantics.c (finish_offsetof): Use TREE_OPERAND for COMPONENT_REFs
only.

* g++.dg/ext/offsetof1.C: Add test with function pointer arithmetic.

From-SVN: r115466
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/offsetof1.C