This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47202] Endless recursion during mangling
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Dec 2011 00:47:43 +0000
- Subject: [Bug c++/47202] Endless recursion during mangling
- Auto-submitted: auto-generated
- References: <bug-47202-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47202
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compile-time-hog
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-31
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-31 00:47:43 UTC ---
Confirmed.
With a slight change:
Matrix (octave_idx_type r, octave_idx_type c, double val):MArray2 (r, val)
to:
Matrix (octave_idx_type r, octave_idx_type c, double val):MArray2<double> (r,
val)
GCC 4.4.5 (and 4.3.5 with even more changes) gave the following ICE:
t.cc:248: internal compiler error: in force_constant_size, at gimplify.c:812
Here is a reduced testcase which shows the issue and does not give an ICE for
4.4 and below but rather an error:
template <class R> struct norm_accumulator_2
{
R scl;
};
template <class R> R vector_norm (R)
{
vector_norm (norm_accumulator_2 <R> ());
}
double xnorm (double p)
{
vector_norm (p);
}