This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r260654 - in /trunk/gcc: ada/ChangeLog ada/exp_...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 24 May 2018 13:05:33 -0000
- Subject: r260654 - in /trunk/gcc: ada/ChangeLog ada/exp_...
Author: pmderodat
Date: Thu May 24 13:05:32 2018
New Revision: 260654
URL: https://gcc.gnu.org/viewcvs?rev=260654&root=gcc&view=rev
Log:
[Ada] Crash on return of raise expression
This patch fixes an issue whereby the compiler regarded assignments to limited
that consisted of raise expressions to be a compile-time error during
expansion.
2018-05-24 Justin Squirek <squirek@adacore.com>
gcc/ada/
* exp_ch3.adb (Expand_N_Object_Declaration): Ignore raising an error in
expansion for limited tagged types when the node to be expanded is a
raise expression due to it not representing a valid object.
* exp_ch5.adb (Expand_N_Assignment_Statement): Add exception to error
message regarding assignments to limited types to ignore genereated
code.
gcc/testsuite/
* gnat.dg/raise_expr.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/raise_expr.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch3.adb
trunk/gcc/ada/exp_ch5.adb
trunk/gcc/testsuite/ChangeLog