re PR c/88701 (Internal compiler error for valid program using compound literal with...
[gcc.git] / gcc / c / ChangeLog
index fbd94f5607c9d30db099a569c61eedfc529106d8..7cffd900c274ecedf103a7f4132ad8752ad6bbe2 100644 (file)
@@ -1,3 +1,18 @@
+2019-01-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/88701
+       * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl
+       if current_function_decl is non-NULL.
+
+2019-01-07  Joseph Myers  <joseph@codesourcery.com>
+
+       PR c/88720
+       PR c/88726
+       * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
+       whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
+       functions declared but never defined only for external scope, not
+       for other scopes.
+
 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/85052