This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37646] [4.2/4.3 regression] ICE with function vs. member function
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2009 22:34:38 -0000
- Subject: [Bug c++/37646] [4.2/4.3 regression] ICE with function vs. member function
- References: <bug-37646-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jason at gcc dot gnu dot org 2009-01-15 22:34 -------
Subject: Bug 37646
Author: jason
Date: Thu Jan 15 22:34:20 2009
New Revision: 143413
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143413
Log:
PR c++/36334
PR c++/37646
* tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
a function isn't necessarily an lvalue. Take tree, not const_tree.
(lvalue_p, real_lvalue_p): Take tree, not const_tree.
* typeck.c (lvalue_or_else): Likewise.
* cp-tree.h: Adjust prototypes.
PR c++/31488
* tree.c (pod_type_p): Return 1 for structs created by the back end.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn1.C
- copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn1.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn2.C
- copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn2.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/other/vararg-3.C
- copied unchanged from r143308,
trunk/gcc/testsuite/g++.dg/other/vararg-3.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/cp-tree.h
branches/gcc-4_3-branch/gcc/cp/tree.c
branches/gcc-4_3-branch/gcc/cp/typeck.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37646