This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/35741] [4.2/4.3/4.4 regression] ICE with offsetof and references



------- Comment #3 from jakub at gcc dot gnu dot org  2008-04-03 07:44 -------
Subject: Bug 35741

Author: jakub
Date: Thu Apr  3 07:43:46 2008
New Revision: 133863

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133863
Log:
        PR c++/35741
        * semantics.c (finish_offsetof): Undo effect of convert_from_reference
        before calling fold_offsetof.

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

Added:
    trunk/gcc/testsuite/g++.dg/other/offsetof5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35741


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]