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++/36846] ICE with variadic templates partial specialisation



------- 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


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