This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11132] New: tree-check failure after error for invalid template


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]