2018-09-26 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: In
-gnatct mode, process the discriminants only for a definition.
From-SVN: r264610
+2018-09-26 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: In
+ -gnatct mode, process the discriminants only for a definition.
+
2018-09-26 Eric Botcazou <ebotcazou@adacore.com>
* repinfo.adb (List_Record_Layout): Be prepared for JSON output.
part of the associated body so they need to be translated. */
if (type_annotate_only && gnat_equiv_type == gnat_entity)
{
- if (Has_Discriminants (gnat_entity)
+ if (definition
+ && Has_Discriminants (gnat_entity)
&& Root_Type (gnat_entity) == gnat_entity)
{
tree gnu_field_list = NULL_TREE;