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