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++/13094] [3.5 regression] ICE with template-template parameters


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-03-19 11:29 -------
Here's a redux for the mainline crash:

====================================================
template <template <int> class T> struct A : T<0>
{
    A() {}
};
====================================================

PR13094B.cc:7: internal compiler error: tree check: expected record_type,
  union_type or qual_union_type; have bound_template_template_parm in
  dfs_unuse_fields, at cp/search.c:2259
Please submit a full bug report, [etc.]

Btw, the original code snippet does not compile with 3.4.0, but this
is because of bugs in the code.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|rejects-valid               |ice-on-valid-code
            Summary|Incorrect type-id parsing   |[3.5 regression] ICE with
                   |                            |template-template parameters
   Target Milestone|---                         |3.5.0
            Version|3.4.0                       |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13094


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