]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/ChangeLog
[Ada] Spurious error on inst. of partially defaulted formal package
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jul 2019 13:37:47 +0000 (13:37 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jul 2019 13:37:47 +0000 (13:37 +0000)
commitd21e66fbb83b200acb4ecb2b165e60e53d428286
treebad13ae0930e056837e7a5850e4f592197534b5a
parent7a42b778e76b7749cafbb1ba2e6f02f6c7c02176
[Ada] Spurious error on inst. of partially defaulted formal package

This patch removes a spurious error on an instantiation whose generic
unit has a formal package where some formal parameters are
box-initialiaed.  Previously the code assumed that box-initialization
for a formal package applied to all its formal parameters.

2019-07-01  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch12.adb (Is_Defaulted): New predicate in
Check_Formal_Package_Intance, to skip the conformance of checks
on parameters of a formal package that are defaulted,

gcc/testsuite/

* gnat.dg/generic_inst3.adb,
gnat.dg/generic_inst3_kafka_lib-topic.ads,
gnat.dg/generic_inst3_kafka_lib.ads,
gnat.dg/generic_inst3_markets.ads,
gnat.dg/generic_inst3_traits-encodables.ads,
gnat.dg/generic_inst3_traits.ads: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272883 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_ch12.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/generic_inst3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/generic_inst3_kafka_lib-topic.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/generic_inst3_kafka_lib.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/generic_inst3_markets.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/generic_inst3_traits-encodables.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/generic_inst3_traits.ads [new file with mode: 0644]