http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55848
Bug #: 55848 Summary: internal compiler error: verify_cgraph_node failed (with `-flto' and `-fopenmp') Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: ai.az...@gmail.com Created attachment 29073 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29073 Output of -v option and preprocessed file The following C++ source code results in an ICE when compiling on GCC 4.8.0 20121230 with `-flto' and `-fopenmp' command-line options. //-------------------- typedef long unsigned int size_t; extern "C" { extern int omp_get_thread_num (void) throw (); } extern "C" { extern int snprintf(char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) throw () __attribute__ ((__format__ (__printf__, 3, 4))); } void f() { char msg[1024] = ""; snprintf( msg, sizeof(msg)-1, "[%d] ", omp_get_thread_num() ); } void g() { #pragma omp parallel for for( int i = 0; i < 0; i += 1 ) { f(); } } //-------------------- Note that the ICE is not reproduced with GCC 4.6.4 20121228 or 4.7.3 20121229.