[Bug c++/68396] bug with parameter pack expansion
ryan.burn at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 18 04:11:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68396
--- Comment #1 from ryan.burn at gmail dot com ---
It looks like this was caused with the commit "Handle auto parameter packs."
(https://github.com/gcc-mirror/gcc/commit/018c146eec4143116f7f422239d56eb4047be3a4#diff-8570312acacadf34317aa24621800c00)
The addition of these lines to the function find_parameter_packs_r in pt.c
+ if (ppd->type_pack_expansion_p && is_auto_or_concept (t))
+ TEMPLATE_TYPE_PARAMETER_PACK (t) = true;
are interfering with non-pack autos. If I remove them, the code compiles fine.
More information about the Gcc-bugs
mailing list