This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36846] ICE with variadic templates partial specialisation
- From: "tristan at wibberley dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2008 23:34:53 -0000
- Subject: [Bug c++/36846] ICE with variadic templates partial specialisation
- References: <bug-36846-14947@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tristan at wibberley dot org 2008-08-16 23:34 -------
> fail.cc: In instantiation of ?pairs<pair<int, int>, pair<int, int> >?:
> fail.cc:14: instantiated from here
> fail.cc:10: error: mismatched argument pack lengths while expanding ?pair<AS,
> BS>?
> fail.cc: In instantiation of ?pairs<pair<int, int>, pair<int, int>
> >::mismatched_packs?:
> fail.cc:14: instantiated from here
> fail.cc:10: internal compiler error: tree check: expected class ?type?, have
> ?exceptional? (error_mark) in instantiate_class_template, at cp/pt.c:6945
4.3.1 doesn't ICE (I can't get details as somebody was kind enough to try this
for me) and instead reports:
t.cpp:10: error: mismatched argument pack lengths while expanding ?pair<AS,
BS>?
t.cpp:10: error: mismatched argument pack lengths while expanding ?pair<AS,
BS>?
where the ICE is reported above
with -DNO_ICE this is compiled successfully
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36846