This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46156] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11370 with -frounding-math
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Nov 2010 17:24:00 +0000
- Subject: [Bug c++/46156] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11370 with -frounding-math
- Auto-submitted: auto-generated
- References: <bug-46156-4@http.gcc.gnu.org/bugzilla/>
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