This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50861] New: ICE: internal compiler error: tree check: expected tree that contains âdecl minimalâ structure, have âerror_markâ in tsubst_copy_and_build, at cp/pt.c:13526
- From: "cas43 at cs dot stanford.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 05:29:24 +0000
- Subject: [Bug c++/50861] New: ICE: internal compiler error: tree check: expected tree that contains âdecl minimalâ structure, have âerror_markâ in tsubst_copy_and_build, at cp/pt.c:13526
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50861
Bug #: 50861
Summary: ICE: internal compiler error: tree check: expected
tree that contains âdecl minimalâ structure, have
âerror_markâ in tsubst_copy_and_build, at
cp/pt.c:13526
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: cas43@cs.stanford.edu
Created attachment 25607
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25607
Program that causes g++ to ICE.
g++ ICE's with error "internal compiler error: tree check: expected tree that
contains âdecl minimalâ structure, have âerror_markâ in tsubst_copy_and_build,
at cp/pt.c:13526"
Command to reproduce: /home/cas43/new-gcc/inst/bin/g++ prog.cpp -c -O3
Full diagnostic:
prog.cpp:1:40: error: there are no arguments to âkâ that depend on a template
parameter, so a declaration of âkâ must be available [-fpermissive]
prog.cpp:1:40: note: (if you use â-fpermissiveâ, G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
prog.cpp: In constructor âA<T>::A(int) [with T = int]â:
prog.cpp:2:22: error: use of parameter from containing function
prog.cpp:2:6: error: âint kâ declared here
prog.cpp:2:22: error: âkâ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
prog.cpp:2:22: internal compiler error: tree check: expected tree that contains
âdecl minimalâ structure, have âerror_markâ in tsubst_copy_and_build, at
cp/pt.c:13526
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Compiler Version:
Using built-in specs.
COLLECT_GCC=/home/cas43/new-gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../current-gcc/configure --prefix=/home/cas43/new-gcc/inst
Thread model: posix
gcc version 4.7.0 20111024 (experimental) (GCC)