This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch/RFC] PR 57092
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 29 Apr 2013 10:48:27 -0400
- Subject: Re: [C++ Patch/RFC] PR 57092
- References: <517E37C7 dot 7000001 at oracle dot com>
On 04/29/2013 05:05 AM, Paolo Carlini wrote:
in this 4.8/4.9 Regression, finish_decltype_type doesn't handle
ADDR_EXPR.
Hmm...we're seeing the regression because previously
finish_decltype_type would have just returned the type of the template
parameter so it wouldn't ever see the ADDR_EXPR at instantiation time.
But we want to form a DECLTYPE_TYPE so that the mangling is correct.
Perhaps the right solution is to handle this case specially in
tsubst/DECLTYPE_TYPE: If id is true and the original expr is a
TEMPLATE_PARM_INDEX, just instantiate the type of the template parm
rather than its value.
Jason