http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46156
Summary: ICE: in tsubst_copy, at cp/pt.c:11370 with
-frounding-math
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
This problem appeared around the same time as the fix for PR c++/46129, so they
may be related. When I compile this code with -frounding-math:
template < typename K >
void
linear_least_squares_fitting_2()
{
double temp[4] = {1/3.0, 0.25, 0.25, 1/3.0};
}
int main()
{
linear_least_squares_fitting_2<int>();
}
I get the error:
bug.cpp: In function ‘void linear_least_squares_fitting_2() [with K = int]’:
bug.cpp:10:39: instantiated from here
bug.cpp:5:46: internal compiler error: in tsubst_copy, at cp/pt.c:11370
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.