http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57945
Bug ID: 57945 Summary: internal compiler error: in varpool_get_node, at cgraph.h:840 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu == Compiling this code: == static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); == like this: == g++ prog.cpp == produces this output: == prog.cpp:1:17: error: ‘pthread_once’ was not declared in this scope static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); ^ prog.cpp:1:97: error: invalid type in declaration before ‘;’ token static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); ^ prog.cpp:1:97: internal compiler error: in varpool_get_node, at cgraph.h:840 0x4f087f varpool_get_node ../../s-4.9/gcc/cgraph.h:840 0xcea462 varpool_get_node ../../s-4.9/gcc/varpool.c:281 0xcea462 varpool_analyze_node(varpool_node*) ../../s-4.9/gcc/varpool.c:288 0x7d42c7 analyze_functions ../../s-4.9/gcc/cgraphunit.c:935 0x7d5735 finalize_compilation_unit() ../../s-4.9/gcc/cgraphunit.c:2097 0x5edde0 cp_write_global_declarations() ../../s-4.9/gcc/cp/decl2.c:4356 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. == using this version of gcc: == Using built-in specs. COLLECT_GCC=../new-gcc/i-4.9/bin/g++ COLLECT_LTO_WRAPPER=/home/craig/new-gcc/i-4.9/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../s-4.9/configure --prefix=/home/craig/new-gcc/i-4.9 Thread model: posix gcc version 4.9.0 20130718 (experimental) (GCC)