This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37348] New: internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: "simon_baldwin at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2008 11:59:22 -0000
- Subject: [Bug c++/37348] New: internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following demonstrates a (minor severity) gcc-4.4-20080829 ICE on error
recovery with invalid code. No ICE seen in gcc 4.3.1 or prior.
$ cat /tmp/bogus.cc
struct Foo {
// class Bar;
template <class> int f(Bar);
};
$ ./gcc/xgcc --version
xgcc (GCC) 4.4.0 20080829 (experimental)
...
$ ./gcc/xgcc -Bgcc -c -o /dev/null /tmp/bogus.cc
/tmp/bogus.cc:3: error: 'Bar' was not declared in this scope
/tmp/bogus.cc:3: internal compiler error: tree check: expected var_decl, have
field_decl in cp_finish_decl, at cp/decl.c:5461
...
--
Summary: internal compiler error: tree check: expected var_decl,
have field_decl in cp_finish_decl, at cp/decl.c:5461
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: simon_baldwin at yahoo dot com
GCC target triplet: i386-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37348
- Follow-Ups:
- [Bug c++/37348] [4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: rguenth at gcc dot gnu dot org
- [Bug c++/37348] [4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: jakub at gcc dot gnu dot org
- [Bug c++/37348] [4.2/4.3/4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: jakub at gcc dot gnu dot org
- [Bug c++/37348] [4.2/4.3/4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: jakub at gcc dot gnu dot org
- [Bug c++/37348] [4.2/4.3/4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: jakub at gcc dot gnu dot org
- [Bug c++/37348] [4.2/4.3/4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461
- From: reichelt at gcc dot gnu dot org