[Bug c++/31743] [4.1/4.2/4.3 regression] ICE with invalid use of new

brolley at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 5 20:09:00 GMT 2007



------- Comment #2 from brolley at redhat dot com  2007-06-05 20:09 -------
The macro invocation "TYPE_MODE (type)" causes the ICE when tree checking is
enabled because TREE_CODE_CLASS (type) is ERROR_MARK. Checking for this before
checking the tree and returning NULL_TREE allows the compiler to generate the
expected message.

Note that this bug exists in 4.2 and 4.3 but did not result in an ICE during my
initial testing because tree checking is disabled on those branches by default.


-- 

brolley at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brolley at redhat dot com


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



More information about the Gcc-bugs mailing list