This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch / RFC] PR 53211


On 06/17/2013 04:08 PM, Paolo Carlini wrote:
+      if (TREE_CODE (TREE_TYPE (*tp)) == ARRAY_TYPE
+	  && !TYPE_DOMAIN (TREE_TYPE (*tp))
+	  && DECL_INITIAL (*tp)
+	  && type_dependent_expression_p (DECL_INITIAL (*tp)))
+	return *tp;

I think this approach makes sense, but it should go in type_dependent_expression_p rather than instantiation_dependent_r.

And please revert my fix for 56794, since this should fix one as well.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]