This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11132] New: tree-check failure after error for invalid template
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2003 12:53:58 -0000
- Subject: [Bug c++/11132] New: tree-check failure after error for invalid template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11132
Summary: tree-check failure after error for invalid template
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: minor
Priority: P4
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bangerth@dealii.org
CC: gcc-bugs@gcc.gnu.org
Another case of a forgotten check for error_mark, entirely unimportant and
maybe even a duplicate of all the other cases we have:
--------------------------------
struct X {};
template <int dim>
struct Y<2, dim> : public X {};
--------------------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc
y.cc:4: error: wrong number of template arguments (2, should be 1)
y.cc:4: error: provided for `template<int dim> struct Y'
y.cc:4: internal compiler error: tree check: expected class 't', have 'x' (
error_mark) in xref_basetypes, at cp/decl.c:12801
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.