This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47014] New: internal compiler error: tree check: expected tree that contains âdecl minimalâ structure, have ânop_exprâ in decl_linkage, at cp/tree.c:2975
- From: "1zeeky at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Dec 2010 14:40:30 +0000
- Subject: [Bug c++/47014] New: internal compiler error: tree check: expected tree that contains âdecl minimalâ structure, have ânop_exprâ in decl_linkage, at cp/tree.c:2975
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47014
Summary: internal compiler error: tree check: expected tree
that contains âdecl minimalâ structure, have
ânop_exprâ in decl_linkage, at cp/tree.c:2975
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: 1zeeky@gmail.com
Created attachment 22822
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22822
testcase
I (unsuccessfully) tried passing a lambda as a template-parameter and resorted
to reinterpret_casting it to a normal function-pointer, which caused an
internal compiler error and gcc telling me to report it.
$ gcc -v --save-temps -std=c++0x test.cpp
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-gold --enable-ld --with-gold
--enable-lto --disable-multilib --enable-languages=c,c++,lto --enable-threads
Thread model: posix
gcc version 4.6.0 20101212 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-mtune=generic'
'-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -E -quiet -v
-D_GNU_SOURCE test.cpp -mtune=generic -march=x86-64 -std=c++0x -fpch-preprocess
-o test.ii
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/backward
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include
/usr/local/include
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-mtune=generic'
'-march=x86-64'
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -fpreprocessed
test.ii -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test
-std=c++0x -version -o test.s
GNU C++ (GCC) version 4.6.0 20101212 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.0 20101212 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.6.0 20101212 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.0 20101212 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 1c7bc545debdfc2a0b314e4103e7e06d
test.cpp:8:18: internal compiler error: tree check: expected tree that contains
âdecl minimalâ structure, have ânop_exprâ in decl_linkage, at cp/tree.c:2975
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
I've attached test.cpp, which is very short and has almost the same contents as
test.ii anyways.