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++/30297] [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance



------- 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


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