exp_attr.adb (Compile_Stream_Body_In_Scope): When compiling a stream operation for...
authorEd Schonberg <schonberg@adacore.com>
Thu, 12 Nov 2015 11:09:59 +0000 (11:09 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 12 Nov 2015 11:09:59 +0000 (12:09 +0100)
commit73f05f9fe869c25fdcaf27f987016736322ca972
tree2c7efee59c601ee0513d77097395cce8b0062966
parentb3b5c6a236cf0816e987626120419845c8177eb5
exp_attr.adb (Compile_Stream_Body_In_Scope): When compiling a stream operation for an array type...

2015-11-12  Ed Schonberg  <schonberg@adacore.com>

* exp_attr.adb (Compile_Stream_Body_In_Scope): When compiling
a stream operation for an array type, install the scope of the
component type if it is private and not in scope, to prevent
spurious errors if the full view of the component type has
defaulted discriminants.

From-SVN: r230234
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb