re PR c++/35741 (ICE with offsetof and references)
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Apr 2008 07:43:46 +0000 (09:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Apr 2008 07:43:46 +0000 (09:43 +0200)
commit60c4d1358ad5e944caeb1a335da0b2703d909670
tree05c057f129b8e304ff878651261f0fb4016c5d77
parent6cba282a2ceb2086f207124388bc2c38088d759b
re PR c++/35741 (ICE with offsetof and references)

PR c++/35741
* semantics.c (finish_offsetof): Undo effect of convert_from_reference
before calling fold_offsetof.

* g++.dg/other/offsetof5.C: New test.

From-SVN: r133863
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/offsetof5.C [new file with mode: 0644]