This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33962] ICE at call to overloaded template function with variable-length function argument list
- From: "rob dot quill at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2007 15:03:12 -0000
- Subject: [Bug c++/33962] ICE at call to overloaded template function with variable-length function argument list
- References: <bug-33962-8486@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rob dot quill at gmail dot com 2007-11-16 15:03 -------
Hey,
I can confirm this and am trying to investigate the problem. It seems that
more_specialized_fn() loops over the arguments to the first overloaded
function, where in this case there are two, but the tree chain describing the
parameters for the function only contains 1 (i.e. it doesn't count the
ellipses). My current solution just changes the value of len to be at most the
number of items in the chain.
However, I suspect that there is actually something else wrong and that there
should be another node in the chain of type TYPE_PACK_EXPANSION which describes
the variadic-ness of the function.
If anyone can clarify this for me that would be much appreciated.
Rob Quill.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33962