[Ada] Fix ICE on conditional expression with unconstrained type

Eric Botcazou ebotcazou@adacore.com
Mon Jun 6 10:32:00 GMT 2011


This is again the compiler trying to create a temporary, for an unconstrained 
type hence whose size isn't fixed.  Fixed by not creating the temporary as it 
is superfluous here.

Tested on i586-suse-linux, applied on the mainline


2011-06-06  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
	Fix thinko.


2011-06-06  Eric Botcazou  <ebotcazou@adacore.com>

	* gnat.dg/specs/cond_expr1.ads: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cond_expr1.ads
Type: text/x-adasrc
Size: 212 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/fe69e890/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 581 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/fe69e890/attachment-0001.bin>


More information about the Gcc-patches mailing list