http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46156
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-10 17:23:42
UTC ---
(In reply to comment #6)
> template<typename> class vector { };
> struct A{};
> template <class T1>
> void complete_test(vector<T1> data1){
> A drop=A();
> }
> int main(){
> vector<double> vect1;
> complete_test(vect1);
> }
>
> Fine with -std=c++98 but not with -std=c++0x:
> bug.cpp: In function ‘void complete_test(vector<T1>) [with T1 = double]’:
> bug.cpp:9:22: instantiated from here
> bug.cpp:5:11: internal compiler error: in tsubst_copy, at cp/pt.c:11677
This is caused by revision 166167:
http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html