This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77656] 64-bit integral template parameter gets incorrectly sized as 32-bits
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Oct 2016 19:21:15 +0000
- Subject: [Bug c++/77656] 64-bit integral template parameter gets incorrectly sized as 32-bits
- Auto-submitted: auto-generated
- References: <bug-77656-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77656
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> Perhaps tsubst of TEMPLATE_PARM_INDEX instead of just
> return convert_from_reference (unshare_expr (arg));
> also convert it to the TEMPLATE_PARM_INDEX's type (if it is integral type
> only, or when?)?
That would work, but the arg ought to already have the right type from
convert_nontype_argument. I'll take a look.