This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10661: [3.3/3.4? regression] ICE in instantiate_decl
- From: bangerth at dealii dot org
- To: gawrilow at math dot tu-berlin dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, giovannibajo at libero dot it
- Date: 8 May 2003 14:19:07 -0000
- Subject: Re: c++/10661: [3.3/3.4? regression] ICE in instantiate_decl
- Reply-to: bangerth at dealii dot org, gawrilow at math dot tu-berlin dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, giovannibajo at libero dot it, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Regression vs. 3.1: ICE on legal code
New Synopsis: [3.3/3.4? regression] ICE in instantiate_decl
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu May 8 14:19:06 2003
State-Changed-Why:
Ewgenij,
let me start out with two remarks:
- your chances that someone takes care of this might be
higher, if you don't start out whining about the state
of 3.3 a few days before the release and then send us
a bulk of 80,000 lines of template metaprogramming. This
is the most tangled, complicated, unintelligible, evil
code I have ever seen. I spent about 3 hours yesterday
night reducing it to 46,000 lines, but it's very hard
to reduce it and it would have been significantly easier
had you sent in a _reduced_ testcase.
- I managed to extract about a dozen other testcases that
failed somewhere in the compiler while reducing the big
chunk. I imagine, you must have seen things like that as
well while developing. If you get something like that,
please wend them in, preferrably, as said, as _small_
code snippets.
Since the code is so incredibly complex, it might be
worthwhile to make it a testcase. So if you want and
can, I think it would be appreciated if you would set
up a system that updates gcc from CVS source every once
in a while (day, week) and runs it against your code.
This way, you may be able to find bugs in gcc earlier
than right before the release. The bug you reported will
certainly not be fixed for 3.3.0.
That being said:
- the problem exists, it is an ICE in instantiate_decl.
- it's a regression on 3.3. Code doesn't compile on 3.4,
so I can't yet say what's on there
- a somewhat smaller testcase is attached as reduced_1.ii
- I will coordinate with Giovanni about how to further
reduce the code. That's incredibly tedious business- on my way, I found a lot more ICEs. I'll reduce and submit
them over time. If someone fixes the bug here and there
are follow-up failures, please check for potentially
submitted other bugs in this context
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10661