diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-02-29 09:30:09 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-02-29 09:30:09 +0000 |
commit | 8ea456b94ac356fd36ba7043195a2d6c65eebfa7 (patch) | |
tree | 481c26d43400bc16ac47441069e21c886bb804a9 /gcc/testsuite | |
parent | 68ec5613422d80f61d93d493de42397b05f886f6 (diff) | |
download | gcc-8ea456b94ac356fd36ba7043195a2d6c65eebfa7.zip gcc-8ea456b94ac356fd36ba7043195a2d6c65eebfa7.tar.gz gcc-8ea456b94ac356fd36ba7043195a2d6c65eebfa7.tar.bz2 |
decl.c (gnat_to_gnu_entity): Retrofit handling of unconstrained array types as designated types into common...
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Retrofit
handling of unconstrained array types as designated types into common
processing. Also handle array types as incomplete designated types.
From-SVN: r233807
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gnat.dg/incomplete4.adb | 10 | ||||
-rw-r--r-- | gcc/testsuite/gnat.dg/incomplete4_pkg.ads | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/incomplete4.adb b/gcc/testsuite/gnat.dg/incomplete4.adb new file mode 100644 index 0000000..2191d38 --- /dev/null +++ b/gcc/testsuite/gnat.dg/incomplete4.adb @@ -0,0 +1,10 @@ +-- { dg-do compile } + +with Incomplete4_Pkg; use Incomplete4_Pkg; +with System; + +procedure Incomplete4 is + L : System.Address := A'Address; +begin + null; +end; diff --git a/gcc/testsuite/gnat.dg/incomplete4_pkg.ads b/gcc/testsuite/gnat.dg/incomplete4_pkg.ads new file mode 100644 index 0000000..992986e --- /dev/null +++ b/gcc/testsuite/gnat.dg/incomplete4_pkg.ads @@ -0,0 +1,9 @@ +package Incomplete4_Pkg is + + type Circular_Type; + type Ptr is access Circular_Type; + type Circular_Type is array (1..100) of Ptr; + + A : Circular_Type; + +end Incomplete4_Pkg; |