This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 15:11:26 -0000
- Subject: [Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- References: <20040112101346.13653.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-02-02 15:11 -------
The testcase "minimal.c" is broken:
Line 2549 in "main" calls "UniformGridPartition<Dim>::partition" (line 2007+)
which calls "UniformGridPartition<Dim>::blocks" (line 1583) which is an
empty function returning a reference which will later be used.
Since the reference is not initialized at all this *has* to crash somewhere.
IMHO we cannot rely on automatic reducers here. :-(
One must know, whether it is safe to delete a line or not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13653