[Bug c++/40372] [4.4/4.5 Regression] ICE with invalid use of non-static data members

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jun 8 08:58:00 GMT 2009



------- Comment #1 from jakub at gcc dot gnu dot org  2009-06-08 08:58 -------
Caused by PR28879 (r144988) fix.  build_nop doesn't build a NOP_EXPR if
the argument or its type is error_mark_node, so:
13318  /* Remember this wasn't a constant-expression.  */
13319  bounds = build_nop (TREE_TYPE (bounds), bounds);
13320  TREE_SIDE_EFFECTS (bounds) = 1;
would set TREE_SIDE_EFFECTS (error_mark_node).  Which of course breaks a lot of
code everywhere.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-08 08:58:06
               date|                            |


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



More information about the Gcc-bugs mailing list