This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30297] [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2006 04:01:52 -0000
- Subject: [Bug c++/30297] [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance
- References: <bug-30297-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-27 04:01 -------
And another one:
Index: tree.c
===================================================================
--- tree.c (revision 120211)
+++ tree.c (working copy)
@@ -2199,6 +2199,10 @@
then handles a few special cases. Ideally, we would calculate
linkage first, and then transform that into a concrete
implementation. */
+
+ /* Field decls have no linkage. */
+ if (TREE_CODE (decl) == FIELD_DECL)
+ return lk_none;
/* Things that don't have names have no linkage. */
if (!DECL_NAME (decl))
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-12-26 22:32:09 |2006-12-27 04:01:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30297