This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36511] New: ice for legal code with -O2
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2008 17:03:56 -0000
- Subject: [Bug c++/36511] New: ice for legal code with -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For the following C++ source code
typedef void * FILE;
FILE *fp;
extern int fprintf (FILE *__restrict __stream, __const char *__restrict
__format, ...);
int
bert(void)
{
const char * fred = "\n";
fprintf( fp, "%s", fred);
return 0;
}
The GNU C++ compiler version 4.4 snapshot 20080606 says
dcb@suselinux:~/gcc/20080606/bugs> ../results/bin/g++ -g -O2 bug14.cc
bug14.cc: In function 'int bert()':
bug14.cc:15: internal compiler error: in set_rhs, at tree-ssa-propagate.c:750
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ice for legal code with -O2
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36511