Re: C++ PATCH for c++/48707 (c++0x ice on initialization in template)

2012-08-13 Thread H.J. Lu
On Mon, Apr 25, 2011 at 2:53 PM, Jason Merrill wrote: > In C++0x we can have an initializer that is potentially constant and yet > still type-dependent if it involves a call, so we need to handle that. > > For 4.7 I'm explicitly testing for type-dependency; for 4.6 I've made a > smaller change to

C++ PATCH for c++/48707 (c++0x ice on initialization in template)

2011-04-25 Thread Jason Merrill
In C++0x we can have an initializer that is potentially constant and yet still type-dependent if it involves a call, so we need to handle that. For 4.7 I'm explicitly testing for type-dependency; for 4.6 I've made a smaller change to make value_dependent_expression_p return true for type-depen