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 [EMAIL PROTECTED]:~/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