C++ PATCH for c++/23357
Jason Merrill
jason@redhat.com
Fri Sep 16 22:16:00 GMT 2005
The problem in this PR was that we told the middle-end that SIZEOF_EXPR and
ALIGNOF_EXPR were unary expressions, which they are not. They have one
operand, but it isn't an expression. The middle-end code properly assumed
that any operand of a unary expression is an expression, tried to treat it
as such, and died. Fixed thus.
Tested on x86_64-pc-linux-gnu, applied to trunk. Test in
g++.dg/template/sizeof10.C.
2005-09-15 Jason Merrill <jason@redhat.com>
PR c++/23357
* cp-tree.def (SIZEOF_EXPR, ALIGNOF_EXPR): Change code class to
tcc_expression.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1397 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050916/02f48149/attachment.bin>
More information about the Gcc-patches
mailing list