[Bug c++/31434] [4.3 regression] ICE with invalid use of parameter pack in function arg
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 27 18:23:00 GMT 2007
------- Comment #5 from jakub at gcc dot gnu dot org 2007-09-27 18:23 -------
Actually, why do you think this is invalid?
template<typename... T> void foo(const T &...) {}
template<typename... T> void foo(T *const ...) {}
etc. are all accepted and I couldn't find in n2152.pdf any word that would
say that const T... is invalid.
Will post a patch that cures this if that is not invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31434
More information about the Gcc-bugs
mailing list