This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40372] [4.4/4.5 Regression] ICE with invalid use of non-static data members
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2009 08:58:07 -0000
- Subject: [Bug c++/40372] [4.4/4.5 Regression] ICE with invalid use of non-static data members
- References: <bug-40372-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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