not build a NULL_EXPR for an N_Expanded_Name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230791
138bc75d-0d04-0410-961f-
82ee72b054a4
+2015-11-24 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/trans.c (gnat_to_gnu): In type_annotate_only mode, do
+ not build a NULL_EXPR for an N_Expanded_Name.
+
2015-11-24 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (is_cplusplus_method): Check that the type of
types, make this into a NULL_EXPR. */
if (type_annotate_only
&& IN (kind, N_Subexpr)
+ && kind != N_Expanded_Name
&& kind != N_Identifier
&& !Compile_Time_Known_Value (gnat_node))
return build1 (NULL_EXPR, get_unpadded_type (Etype (gnat_node)),