This is the mail archive of the gcc-bugs@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]

[Bug c++/46156] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11370 with -frounding-math


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


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